Hi Peter, I'm not sure I fully understand but we're using "... template layout within templates layout?" successfully and I think this is necessary for all but the simplest tiles layouts. Indeed, tiles examples have used this mechanism a lot and appears the only way of using layouts within layouts.
I'm concerned that "run an <html:form> outside all the shareable and non-shareable tiles" will severely limit the true flexibility of tiles as clearly HTML <FORM ..> cannot be nested and so you would not be able to insert a tile that say asked for one or more input fields with a submit. I guess you could change your "global" <FORM... action=""> usind javascript to post to a different action but that seems yukky in the extreme. We use this "run an <html:form> outside all the shareable and non-shareable tiles" for wizards and this works really nicely as clearly data is entered on one page before "posting" to the next page. I hope I'm on track so far? All I would ask is that is there a way to avoid the "run an <html:form> outside all the shareable and non-shareable tiles" and have a different mechanism for changing pages (sorry haven't seen amazon for a while so do not know their layout) - this would clearly be a problem if you wanted to "post" values from one page on changing page. Maybe using a <A..> may be possible to change pages. Not sure that helps but I've written it now so I'll post it. H. -----Original Message----- From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 14:28 To: Struts Users Mailing List (E-mail) Subject: [TILES] Foxy Tiles Problem Hi I got a Tiles template design question. I have a web site like Amazon.com that using Tabs to navigate around a set of HTML Form elements. Each Page has a HTML Form that contain lots of HTML Input elements. I have written the JSP in the first phase to be monolithic and now I want to break down the layout to use Tiles. I want to take advantage of the fact, that certain areas of the layout design are shared. Unfortunately I have run in to difficulty because they want a specific design that forces me to run an <html:form> outside all the shareable and non-shareable tiles. Ideally, I would like to dynamically set the name of the `action' tag of <html:form> below. I would like to say action="/Main.do" and then action="/Shipping.do" for a single template layout. How can I do this, using TILES? Otherwise I will have to create template layouts for each tab page. (Yuck) Also is it good practice to have template layout within templates layout? // This is a template layout.jsp <!-- Search form --> <tiles:insert attribute="customer-search-form" /> <%-- e.g. ``customerSearchPrompt.jsp'' grabs a CRM record from database. This tile is common to all tabbed pages --%> <html:form action="..." /> <!-- Order Type and Id --> <tiles:insert attribute="form-header" /> <%-- e.g. `sectionHeaderType.jsp' common to all tabs --%> <!-- Core Tab Navigation --> <tiles:insert attribute="tab-navigation" /> <%-- e.g. `tabNavigation.jsp' common to all tabs --> <!-- Form area --> <tiles:insert attribute="form-content" /> <%-- e.g.``MainTab.jsp'', ``ShippingTab.jsp'' this is the heart of the form entry area. This tile will change from tab page to tab page. --%> <!-- Form action --> <tiles:insert attribute="form-action" /> <%-- e.g. `MainActions.jsp'', ``ShippingActions.jsp'' Each tab page shares a set of common buttons, but has it possible for a tab page to have its own custom buttons. This tile will change from tab page to tab page. --%> </html:form> Any ideas appreciated, MTIA -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 ******************************************************************** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority ******************************************************************** --------------------------------------------------------------------- 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]