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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make the body dynamic in tiles (struts2)
 
Similar Threads
struts tiles 1.3.8
Tiles Context is there and is not there?
Using Tiles Attributes with Custom Tags.
How to access to ValueStack from xml?
TilesAction, how to???