This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to use nested layouts in tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use nested layouts in tiles" Watch "How to use nested layouts in tiles" New topic
Author

How to use nested layouts in tiles

Nadine Hossam
Greenhorn

Joined: Jun 19, 2005
Posts: 13
Hi,
I'm using struts and tiles in my JSP and I need to have nested layouts.
I need to have the main Layout, and have this one contains body Layout.

The problem is that I can't pass this body value to the bodyLayout
<definition name="screen1" extends="LayoutDef">
<put name="body" value="/JSP/temp1.jsp" />
</definition>

<definition name="screen2" extends="LayoutDef">
<put name="body" value="/JSP/temp2.jsp" />
</definition>

Can anyone send me sample of code of how the tiles-config and layout files should look like?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use nested layouts in tiles
 
Similar Threads
Problem with Tiles-Definition
Tiles question
How do i change only body page in tiles.xml file in struts2
dynamic parameters to tiles
dynamic page throught tile