Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make the body dynamic in tiles (struts2)  RSS feed

sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

While using tiles in struts1 i have used the below tag in tiles.xml
<put-attribute name="body" value="string"/>

and in my JSP page i used to get the dynamic body by declaring the below tags

<tile:insert definition="common-layout-definition">
// to get dynamic title
<tile:put name="title" type="string">
<bean:message key="login.title"/>
//to get dynamic body
<tile:put name="body" type="string">
</tile:insert definition>

But how can we achive the same in strust2 of tiles2

i am able to see new tags like <tile:insertDefinition>,<tile:putAttribute>

can any one let me know how to use these tags to get the dynamic body.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!