File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i change only body page in tiles.xml file in struts2

 
anil kumar mullapudi
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

my tiles.xml
---------------
<definition name="baseLayout" template="/Layouts/baseLayout.jsp">
<put-attribute name="title" value="Template"/>
<put-attribute name="header" value="/Layouts/header.jsp"/>
<put-attribute name="menu" value="/Layouts/menu.jsp"/>
<put-attribute name="body" value="/Layouts/body.jsp"/>
<put-attribute name="footer" value="/Layouts/footer.jsp"/>
</definition>

<definition name="welcome" extends="baseLayout">
<put-attribute name="title" value="Welcome"/>
<put-attribute name="body" value="/Layouts/welcome.jsp"/>
</definition>

in my struts.xml file i have so many result pages, so i need write tiles definitions for each result page. And every time i want to change only body page of my base layout. Is it possible with one tiles definition for all results and if possible how to pass our dynamic result page to that body tile definitions in tiles.xml file.
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can do it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic