struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asleson, Ryan" <>
Subject Struts 2 and Sitemesh
Date Fri, 16 May 2008 18:51:56 GMT
I'm new to Struts 2 and have some experience with Sitemesh, but I'm
having trouble getting the two to work together.
I have defined a decorator like this:
    <decorator name="main" page="default.jsp">

So it should be decorating anything that goes to Struts 2.  The
default.jsp file has a line that looks like this:
<page:applyDecorator name="theDecorator" page="/include/footer.action
<> " />
When I run the page it fails with this error:
I know the decorator default.jsp is being applied because when I remove
the <page:applyDecorator> tag from it there are no errors.
If I change the <page:applyDecorator>'s page attribute to be an external
website, it works too.
So, it looks like it's not getting the call to another internal action.
I've triple-check the path and it is correct.  In fact, I disabled
Sitemesh and went to the /myapp/include/footer.action and it displayed
Here's what's in web.xml:

I don't know what else to do.  Can anybody figure out what's going on??
Thank you!!

This e-mail message is being sent solely for use by the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.
 If you are not the intended recipient, please contact the sender by phone or reply by e-mail,
delete the original message and destroy all copies. Thank you.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message