Hi all,

My decorators.xml:

<decorators defaultdir="/decorators">
   <excludes>
       <pattern>/resources/*</pattern>
       <pattern>/decorators/*</pattern>
   </excludes>

   <decorator name="public" page="public.jsp">
       <pattern>/public/*</pattern>
   </decorator>
</decorators>


The problem is that Sitemesh seems only to decorate jsp pages in public
folder but not an action. For example if I put test.jsp in
src/main/webapp/public/ folder then the page gets decorated when I try to
access localhost:8080/public/test.jsp. Now if I define an action:

   <package name="public" namespace="/public" extends="struts-default">
       <action name="browse!*" method="{1}" class="browseAction">
           <result name="success">/public/browse.jsp</result>
       </action>
   </package>

Now I try to browse localhost:8080/public/browse.html then I got forwarded
to public/browse.jsp but this page doesn't get decorated.

Any ideas?

Reply via email to