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