• 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

dynamic parameters to tiles

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am using tiles with struts in my project.

My requirement is this:
I have defined the root lay out like this:

<definition name="rootLayout" path="/layouts/layout.jsp">
<put name="titleString" value="Root Layout"/>
<put name="header" value="/header/primaryHeader.jsp"/>
<put name="navigationRegular" value="/navigation/navHR.jsp"/>
<put name="styleNavigation" value="/navigation/navHS.jsp"/>
<put name="body" value="CHANGE-ME"/>
<put name="rightNavigation" value="/navigation/rightNavLine.jsp"/>
<put name="footer" value="/navigation/navBottom.jsp"/>
</definition>

now depending on certain variables in the Action file, the layout should display either navHR.jsp or navHS.jsp

how can we do this?..can we pass parameters to tiles at runtime?

Cheers,
Seshu
 
no wonder he is so sad, he hasn't seen this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic