If you use Tiles Definitions, you can get rid of this second jsp(holder jsp) per page.So you end up writing just one jsp(te body part jsp)per page..
Following is what you do. Write one jsp which include all the reusable jsps and have the common layout for your site. I call this CLassicLayout_template.jsp It will have includes like this. <tiles:insert attribute="header" /> <tiles:insert attribute="menu" /> <tiles:insert attribute="bodyContent" /> <tiles:insert attribute="footer" /> with proper layout offcourse. Then define a base definition for u r site like this in tiles-defs.xml.. <definition name="base.classicLayout" path="/WEB-INF/jsp/tiles/classicLayout_template.jsp"> <put name="header" value="/WEB-INF/jsp/tiles/header.jsp" /> <put name="navigation" value="/WEB-INF/jsp/tiles/sidebar.jsp" /> <put name="content" value="${content}"/> <put name="footer" value="/WEB-INF/jsp/tiles/footer.jsp" /> </definition> Then per page you just extend this page and overridfe the body portion.. <definition name="cs.admin.homepage" extends="base.classicLayout"> <put name="content" value="/WEB-INF/jsp/pages/cs/admin_homepage.jsp"/> </definition> In fact, ted Husteds book(Struts In Action)has a very chapter about it.That should ehlp u. Regards, Shirish -----Original Message----- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 3:48 PM To: Struts Users Mailing List Subject: Re: tiles question There's a method of reducing this duplication in Ted Husted's "Struts in Action" book - the method, I believe, is called the "body wrap" method and it addresses a particular situation that is common, that allows you to eliminate this duplication. Also, you can define and extend tile definitions in XML, that also help mitigate and leverage the scaleability of Tiles. I recommend you check out Ted's book or other Struts books that also address Tiles. Kalra, Ashwani wrote: >hi, >I tiles you have to maintain two pages. One that includes all the sections >like header, footer, variable content jsp, etc. and one jsp which contains >your code(varible part). >This doubles up the no of jsps ? Is it ok. any work around ? > >TIA >Ashwani Kalra >http://www.geocities.com/ashwani_kalra > > > > > > > > >____________________________________________________ >This message contains information that may be privileged or confidential and >is the property of the Cap Gemini Ernst & Young Group. It is intended only >for the person to whom it is addressed. If you are not the intended >recipient, you are not authorised to read, print, retain, copy, disseminate, >distribute, or use this message or any part thereof. If you receive this >message in error, please notify the sender immediately and delete all copies >of this message. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]