This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Tiles and parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles and parameters" Watch "Tiles and parameters" New topic

Tiles and parameters

Franck Tranchant
Ranch Hand

Joined: Aug 07, 2003
Posts: 75
I would like to use simple Tiles implementation in my JSPs.
Something like basic includes :
<tiles:insert page="/header.jsp" flush="true" />
I would like to add some parameters too :
<tiles:insert page="/header.jsp?userId=123" flush="true" />
Now, does anybody know how to use dynamic parameters ?
Something like :
String userId = "123";
<tiles:insert page="/header.jsp?userId=<%=userId%>" flush="true" />
(Of course, this code sample doesn't work)


I agree. Here's the link:
subject: Tiles and parameters
It's not a secret anymore!