• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you can do it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic