struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brady Hegberg <>
Subject tiles, conditional choice of
Date Sat, 27 Dec 2003 06:12:26 GMT
I've been trying to find the best way to handle a situation where you
have various formats for a tile and the tile appearance is chosen at

<definition name="showList" extends="mainLayout">
  <put name="header" value="/header.jsp"/>
  <put name="body" value="/????"/>
  <put name="footer" value="/footer.jsp"/>

And I have content1.jsp, content2.jsp and content3.jsp which can be
loaded into the page

Should I:

1.  Have a single tile with choose statements to determine the format.
2.  Have a single master tile which chooses between various tiles and
loads the selected one?  (If possible?)
3.  Have a ClassController or TilesAction class which changes the tile
object and loads the chosen tile into the tile object before displaying
it.  (If so how is this done?  Any examples available?)

I found a couple similar references in the archives but no definitive


PS:  It would be cool if you could create an action for a tile and then
do an actionForward which returns the chosen tile into the correct spot
on the calling page but I don't believe this is possible.  At least I've
never seen anything that indicated it could be done.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message