Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make the body dynamic in tiles (struts2)

 
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"/>
</tile:put>
//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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic