struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Relph,Brian" <>
Subject RE: Struts 2 and Sitemesh
Date Fri, 16 May 2008 19:21:44 GMT

You might try this:

<page:applyDecorator name="theDecorator">
	<s:action name="footer" executeResult="true" />

You can also reference this issue:

Brian Relph

-----Original Message-----
From: Relph,Brian [] 
Sent: Friday, May 16, 2008 2:14 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh

Can you provide your struts.xml? 

Brian Relph

-----Original Message-----
From: Asleson, Ryan []
Sent: Friday, May 16, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Struts 2 and Sitemesh

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 correctly.
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.

CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation
and are intended only for the addressee. The information contained in this message is confidential
and may constitute inside or non-public information under international, federal, or state
securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the addressee, please
promptly delete this message and notify the sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message