All parameters passsed are available in TilesCOntext..

Search the message archive for accessing TilesContext in java..

-----Original Message-----
From: Sudip Kumar Bhattacharya(HOTPOP) [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 2:11 PM
To: Struts Users Mailing List
Subject: [RE-POST]: HOW TO Use Tiles parameters in Java


Hi,

I sent the mail earlier but recieved no reply. So I am posting it again with
more code details.

My login.jsp given below assigns the parameter *pageid* a value of 1001. I
need to retrieve this pageid value in tile menu.jsp. How can I do that? I am
able to retrieve the pageid parameter in my pageLayout.jsp using
tiles:useAttribute, but it is not accessible in menu.jsp.
Can somebody guide me in this??

---------login.jsp------------------------------------------
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert page="/layouts/pageLayout.jsp" flush="true">
  <tiles:put name="pageid" value="1001" />
  <tiles:put name="title" value="Log In" />
  <tiles:put name="header" value="/tiles/header_1.jsp" />
  <tiles:put name="footer" value="/tiles/footer.jsp" />
  <tiles:put name="menu" value="/tiles/menu.jsp" />
  <tiles:put name="body" value="/tiles/login_body.jsp" />
</tiles:insert>
------------------------------------------------------------


Thanks in advance,
Sudip

-----Original Message-----
From: Sudip Kumar Bhattacharya(HOTPOP) [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:21 PM
To: Struts Users Mailing List
Subject: Tiles and Java


Hi Everybody,

I just wanted to know if I can use the parameters passed to a tile in java
code? Can someone provide me some sample code which demonstrates this?

To elaborate, I am passing some parameters to a tile. The tile is a JSP page
and in that JSP page I have some java code as well. I would like to access
the value of the tile parameter in my Java code. That's it!!

Any type of help will be appreciated.

Sudip



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to