Re: Modifying Tiles definitions dinamically

2004-08-18 Thread brenmcguire
Ok I'll try to explain the whole process. 1) Create your "TilesAction". For example, take this example class: package foo.bar; public class MyAction extends org.apache.struts.tiles.actions.TilesAction { public ActionForward execute(ComponentContext componentContext, ActionMappi

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread Leandro Melo
I'm not sure if i get it right, i still have a couple doubts. Take this definition: ... ... Naturally i got a login page, would i have to redirect the login (or just forward the login) to this "TilesAction" and then manipulate my definition and insert the real jsp page i want??? I have

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread brenmcguire
think the best (and the most elegant) way to make dynamic tiles is by using TilesAction. This because this class has knowledge of the use of Tiles. So write your TilesAction (it is similar to a plain Action, except of some more parameters in the "execute" method). In the "execute" method put your c

Modifying Tiles definitions dinamically

2004-08-15 Thread Leandro Melo
Hi, i got a very ordinary problem. I need to provide diferent menus for diferent people that are logged in the application. I don't know what i should do exactly to provide this funcionality, because i don't really know what Tiles allow me to do (i don't know it's potencial). I got the following b