aspose file tools*
The moose likes Struts and the fly likes How to make the body dynamic in tiles (struts2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to make the body dynamic in tiles (struts2)" Watch "How to make the body dynamic in tiles (struts2)" New topic
Author

How to make the body dynamic in tiles (struts2)

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
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.
 
 
subject: How to make the body dynamic in tiles (struts2)