Dealing with Struts Forwards
Ketan <[email protected]> Thu, 28 Jul 2005 11:28:32 CDT
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <13102293.1122568302856.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi Scott,
Is there an example of such a decorator that has been created already. The only reason I ask is because I would imagine this is something so many people would want to do.
I have also decided to take the plunge and look at upgrading to Tomcat 5.0. I have installed it and configured my app which happens to be based on the Appfuse framework, but still cannot get it to use different decorators. This is my decorator.xml
<excludes>
<pattern>/demos/*</pattern>
<pattern>/resources/*</pattern>
</excludes>
<decorator name="report" page="report.jsp">
<pattern>*/report_output/*</pattern>
</decorator>
<decorator name="default" page="default.jsp">
<pattern>/*</pattern>
</decorator>
The struts config is as follows :
<action path="/aReport" type="ActionClass"
name="reportForm"
scope="request"
input="aReport"
unknown="false"
parameter="method"
validate="false"
>
<forward
name="report_result"
path="/WEB-INF/pages/report_output/displayReport.jsp" (This is the page that I would like decorated differently)
redirect="false"
/>
<forward
name="request_screen"
path="/WEB-INF/pages/aReport.jsp" (This page is to be decorated as normal with menus etc...)
redirect="false"
/>
Are there any further setup tasks that need to be performed to get forwards to decorate successfully.
Regards
Sonik
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=4328&messageID=11585#11585
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]