File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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)


jQuery in Action, 3rd edition
subject: Tiles and parameters
It's not a secret anymore!