File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic parameters to tiles

 
Sree Jag
Ranch Hand
Posts: 77
  • 0
  • 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"/>
</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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic