dynamic tiles configuration in struts1.2.x?

View: New views
2 Messages — Rating Filter:   Alert me  

dynamic tiles configuration in struts1.2.x?

by jo_atman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Antonio Petrelli-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/8 jo_atman <nthali@...>:

> 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@...
For additional commands, e-mail: user-help@...