struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gupta, Rahul" <RGU...@amfam.com>
Subject Sharing variables between Tiles
Date Wed, 06 Sep 2006 19:20:06 GMT
Hi,
I have a page with three tiles. Is there a way to share a variable
between these tiles?

I want to set the variable in one tile and access its value in the other
two tiles. I don't know if it is relevant - I am using tile controllers
to populate data needed by each of the tiles to draw that tile.
Following is the layout page.

I will appreciate any help.

Thanks,
RG

<table  width="100%">
  <tr>
    <td><tiles:insert definition=".A"/></td>
  </tr>
  <tr>
    <td><tiles:insert definition=".B"/></td>
  </tr>
  <tr>
    <td><tiles:insert definition=".C"/></td>
  </tr>
</table> 

<definition name=".A" path="/a.jsp" controllerClass="ATileController" />

... similar tile definitions for B & C.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message