Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use nested layouts in tiles

 
Nadine Hossam
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic