The examples in struts-documentation use a master layout (classicLayout.jsp), and the body is often made of tiles inserted with another layout (like columnsLayout, vboxLayout, tabsLayout...). You can easily define your own layout with an insert. It is also possible to insert the definition corresponding to a page inside a nested bodies (see the tabs in the example directory).
Maybe I have miss something in what you are trying to do ...
Cedric
Roland Berger wrote:
Yes, that's exactly what I also want to do. But it seems that I missed the big picture. When I set flush="true" I get a Illegal to flush error. If I set flush="false" the tile I want to insert into the "body template" is inserted at the top of the page and not where the insert tag is. Can you give a small example with tiles-defs.xml and the JSP Part?
( see also thread: 'tiles insert in "sub layout"' )
Thanks a lot. Roland.
-----Ursprüngliche Nachricht----- Von: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 22. Februar 2003 14:13 An: Struts Users Mailing List Betreff: Re: Tiles Body question
You can have a body acting as a "body template" which in turn insert other bodies ...
Cedric
James Prance wrote:
In a classic template, the header, footer and menu could be common across your application. However the body would likely change depending on the business process.
Is there a way to alter the 'body' value dynamically? I'm a bit confused by this at the moment and my current understanding is that you need a new 'layout' for each differing 'body' page..
is this correct or am i totally arse about face?
James
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]