You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matthew Seaborn <Ma...@performgroup.com> on 2008/02/17 10:07:07 UTC

Sitemesh & Struts 2

Has anyone had much experience with SiteMesh and Struts 2?  

Do they 'play' together well?

Are there better alternatives when styling/compiling pages?  

Thanks.

________________________________________________________________________

CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.

SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence.

VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient’s responsibility to ensure that email is virus free.

AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group.

COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Sitemesh & Struts 2

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
> On Feb 17, 2008 8:07 PM, Matthew Seaborn
> <Ma...@performgroup.com> wrote:
>   
>> Has anyone had much experience with SiteMesh and Struts 2?
>>
>> Do they 'play' together well?
>>
>> Are there better alternatives when styling/compiling pages?
>>
>> Thanks.
>>     
As Don stated, SiteMesh plays very well with Struts2

The Tiles plugin also plays very well with Struts2

I personally use SiteMesh for page decoration and Tiles for components 
within a page.
The strength of the former is that it can decorate pages without the 
pages needing to know about it.  Perfect for large decorations (head, 
header, footer, sidebar etc)
The strength of the latter for me is in the Tiles result type for 
HTML/JSP fragments (struts.xml names a Tile and Tiles allows me to 
override or extend it when necessary). I never reference a JSP/FTL/VT 
directly from struts.xml any more.

I now use both in most applications.  Either is much better than using 
s:include/jsp:include


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Sitemesh & Struts 2

Posted by Don Brown <do...@gmail.com>.
You could say Struts 2 was built with SiteMesh in mind :)  The WebWork
folks heavily favored their sister project SiteMesh and had SiteMesh
support in there from day one.

In Struts 2, we moved it out into the SiteMesh plugin:
http://struts.apache.org/2.x/docs/sitemesh-plugin.html

Don

On Feb 17, 2008 8:07 PM, Matthew Seaborn
<Ma...@performgroup.com> wrote:
>
> Has anyone had much experience with SiteMesh and Struts 2?
>
> Do they 'play' together well?
>
> Are there better alternatives when styling/compiling pages?
>
> Thanks.
>
> ________________________________________________________________________
>
> CONFIDENTIALITY - This email and any files transmitted with it, are confidential, may be legally privileged and are intended solely for the use of the individual or entity to whom they are addressed. If this has come to you in error, you must not copy, distribute, disclose or use any of the information it contains. Please notify the sender immediately and delete them from your system.
>
> SECURITY - Please be aware that communication by email, by its very nature, is not 100% secure and by communicating with Perform Group by email you consent to us monitoring and reading any such correspondence.
>
> VIRUSES - Although this email message has been scanned for the presence of computer viruses, the sender accepts no liability for any damage sustained as a result of a computer virus and it is the recipient's responsibility to ensure that email is virus free.
>
> AUTHORITY - Any views or opinions expressed in this email are solely those of the sender and do not necessarily represent those of Perform Group.
>
> COPYRIGHT - Copyright of this email and any attachments belongs to Perform Group, Companies House Registration number 6324278.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org