Tiles attributes can be made available as 
request attributes using the 
<tiles:importAttribute /> or <tiles:useAttribute /> tags.

Any name/value that you <tiles:put> can be made available.

eg: template.jsp
        <tiles:insert page="/test/tt.jsp">
                <tiles:put name="param1" value="1" />
        </tiles:insert>

    tt.jsp
        <tiles:importAttribute />
        <bean:write name="param1" />


   Struts documentation
http://jakarta.apache.org/struts/userGuide/struts-tiles.html#importAttribute
should help.



hth
-jayash

-----Original Message-----
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 3:48 PM
To: [EMAIL PROTECTED]
Subject: Passing Value to Tile


Hi,
         I have a main jsp contains set of tiles included and contents of
each tile should be generated based on the value passed into it from its
parent jsp.....can anybody suggest me how can I send a value to tile from
parent jsp and access that value inside tile?

Thanks in advance,

-Ramadoss


---------------------------------------------------------------------
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