Two Laptop Bag*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: dynamic parameters to tiles
 
Similar Threads
Tiles question
nested tiles
Struts-Tiles problem
Struts - Tiles
Tiles & Validator