Using common sitemesh decorators for all web apps
Jonathan <[email protected]> Tue, 14 Jun 2005 21:57:24 CDT
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <5925476.1118804285833.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi I am trying to get a PHP app to be decorated by an existing sitemesh installation. I read your idea about creating a proxy class to forward the request on to the external app then feed the reponse back. This is what I have so far: a class HttpProxyServlet This is sitting in our existing sitemesh enabled web-app. This app is configured to filter everything through sitemesh and seems to work fine for everyting except my proxy class. when I run it I get the following exception: java.lang.NullPointerException com.opensymphony.module.sitemesh.filter.PageResponseWrapper.getPage(PageResponseWrapper.java:274) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:140) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58) By the way my proxy class is using commons-httpclient to connect to the php app, it writes the response from my php post directly to the proxy servlets response, if that helps. The proxy class is pretty simple and generic, I can post it here if that helps at all. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=1454&messageID=8569#8569 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]