• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic parameters to tiles

Sree Jag
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • 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"/>

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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic