This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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"/>
//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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to make the body dynamic in tiles (struts2)
It's not a secret anymore!