You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jo_atman <nt...@yahoo.com> on 2009/07/08 19:14:16 UTC

dynamic tiles configuration in struts1.2.x?

Folks,
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.

Thanks,
Nilesh
-- 
View this message in context: http://www.nabble.com/dynamic-tiles-configuration-in-struts1.2.x--tp24395639p24395639.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: dynamic tiles configuration in struts1.2.x?

Posted by Antonio Petrelli <an...@gmail.com>.
2009/7/8 jo_atman <nt...@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