struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: dynamic tiles configuration in struts1.2.x?
Date Wed, 08 Jul 2009 17:55:48 GMT
2009/7/8 jo_atman <nthali@yahoo.com>:
> I have an existing project which makes heavy use of tiles definitions for
> pages. now there's a requirement to change the pages shown based on the
> user.
> Any ideas on how to do this would be greatly appreciated. I would of course
> prefer not to create a static tiles definition for each page that can be
> shown to the user. i'm thinking something along the lines of:
> 1. have a few generic definitions for pages (page.one, page.two...)
> 2. at runtime based on a different configuration file insert the specific
> jsps in the body part of the tile.
>
> of course, any different and better way to achieve the same result is always
> welcome.

Use a controller class:
http://struts.apache.org/1.x/struts-tiles/apidocs/org/apache/struts/tiles/Controller.html

Antonio

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


Mime
View raw message