I guess putting the layout for all the pages in tiles-defs.xml is a solution, however, I am still hoping that the layout of the page can be kept with the page. There are other aspects which differ for each page. For example, I would like to include a help text with each page that is displayed. Currently, that's either a) another file, or b) ugly long line of HTML formatted data in the information.jsp (page which defines the template layout). For example, one of my pages looks like this:
<%@ page language="java" %> <%@ taglib uri="struts-template" prefix="template" %> <template:insert template="/common/template.html"> <template:put name="title" content="Member" direct="true" /> <template:put name="content" content="/private/member/informationContent.html" /> <template:put name="help" direct="true" content="<br/>This page shows some information<br/>"/> </template:insert> I would really want to include this layout, the help information, the title information and the informationContent.html in to one page called information.jsp. -AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -----Original Message----- From: Zeltser, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 8:21 AM To: 'Struts Users Mailing List' Subject: RE: How to avoid a separate .jsp page for body definition when us ing Templates? Hi Alex, That was one of the reasons I used Tiles. You can put all your page definitions in tiles-defs.xml. This single configuration files will replace all your page.jsp(s). Mark. -----Original Message----- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 11:19 AM To: 'Struts Users' Subject: How to avoid a separate .jsp page for body definition when using Templates? I am currently using Templates (not Tiles) to layout our pages. While general components such as menu, header, footer are well defined, same for all pages, and are included from a global single location, the body is always different. So, for every page, we wind up with 2 pages. page.jsp - uses the <template tags to define the layout pageContent.jsp - used from page.jsp to define the body content This is quite cumbersome. Is there a way to put the layout definition and the "contents" of at least the body into the same page? Other things such as the title, and help text change on a page by page basis, so it would be nice to package these two items in to the same page as well. Is this easier done with Tiles? Thanks. -AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ---------------------------------------------------------------------------- -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>