when url is for struts action sitemesh does not decorate
desi <[email protected]> Sat, 16 Jan 2010 18:42:35 -0800 (PST)
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
My problem is when I enter a url in the browser as Login.action sitemesh
does not decorate it but when I enter the actual jsp page behind the action
I see the decorated page. What am I doing wrong? I need it to decorate for
all URL patterns. I am using Struts2.
web.xml
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
decorators.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<decorators defaultdir="/decorators">
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
<decorator name="panel" page="panel.jsp"/>
<decorator name="printable" page="printable.jsp"/>
</decorators>
struts.xml
<action name="ShowLogin">
<result>/pages/login/ShowLogin.jsp</result>
</action>
Thx
--
View this message in context: http://old.nabble.com/when-url-is-for-struts-action-sitemesh-does-not-decorate-tp27195797p27195797.html
Sent from the OpenSymphony - SiteMesh mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]