Priya, SiteMesh is different from Tiles in a two key ways:
1. Configuration: Sitemesh currently can wrap any number of pages and page types (*.html, *.jsp, *.xhtml, *.xml, etc.) with one simple configuration. Tiles, on the other hand requires you to either set something up in EVERY JSP file or setup a tile for every page (such as if you use it for page generation inside Struts). I am not sure if this will change when Tiles becomes a fully stand-alone project since it is currently being modified for stand-alone use. 2. Insertion of contents: Tiles is much more flexible on which content to include in a page. It has optional "controllers" that allow you to insert anything anywhere before the page is rendered. Sitemesh is much less flexible in this regard. It comes from the fact that Sitemesh wraps the already "completed" page before handing it back to the web server. This makes it more difficult to insert random menus, for example, into various parts of pages. Since you mentioned you wanted to set the look for many static html plus dynamic JSP pages, it sounded like you might be better served with SiteMesh wrapping all of your files automatically. Then, you could keep each file's html down to a simple stub of center content and let Sitemesh wrap all of your varied pages in your look right before passing them back to your visitors/clients. I hope this opinion helps you before you do your own research on these two products. Regards, David -----Original Message----- From: Priya Saloni [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 5:33 PM To: Struts Users Mailing List Subject: Re: generel tiles question.. Thanks David, our application is struts based.So i thought its a good idea to go for Tiles Framework.May i know how sitemesh is different from Tiles? Thanks again for your response Priya On 12/14/05, David G. Friedman <[EMAIL PROTECTED]> wrote: > > If you are using the menu for all pages and also want to use many static > pages, I suggest you also look at SiteMesh. > http://www.opensymphony.com/sitemesh/ > > Regards, > David > > -----Original Message----- > From: Priya Saloni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 14, 2005 5:09 PM > To: user@struts.apache.org > Subject: generel tiles question.. > > > Hi there, > > I have a web application which contains many static(HTML) > and dynamic (JSP) pages.As per thr requirement i need to > have a common Menu(HTML) for all the pages(JSPs and > HTMLs).Can i use Tiles Framework for the purpose of > reusability?or the tiles framework is used to work > with JSPs? > > Thanks In Advance > > Priya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]