The moose likes Struts and the fly likes dynamic parameters to tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic parameters to tiles" Watch "dynamic parameters to tiles" New topic
Author

dynamic parameters to tiles

Sree Jag
Ranch Hand

Joined: Oct 14, 2003
Posts: 77
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


Sree Jag<br />SCJP 1.4
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: dynamic parameters to tiles
 
It's not a secret anymore!