Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
It works fine. Thank you Alex, thank you Lukasz. 2008/9/23 Gianluca Musella <[EMAIL PROTECTED]>: > ok, it sounds better. > > thank you Lukasz > > > 2008/9/23 Lukasz Lenart <[EMAIL PROTECTED]>: >>>>> class="org.almayer.web.action.SessionAction" method="login"> >>>>> type="redir

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
ok, it sounds better. thank you Lukasz 2008/9/23 Lukasz Lenart <[EMAIL PROTECTED]>: >>> class="org.almayer.web.action.SessionAction" method="login"> >>> type="redirectAction">${redirectTo} >> >> >> This is the login action's method (I omitt logic): >> >>public Str

Re: quest on dynamic redirect

2008-09-23 Thread Lukasz Lenart
> class="org.almayer.web.action.SessionAction" method="login"> > type="redirectAction">${redirectTo} > > > This is the login action's method (I omitt logic): > >public String login() throws Exception { >return "home"; >} > You have to add getter Str

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
Mmm... doesn't work. This is in my struts.xml: ${redirectTo} This is the login action's method (I omitt logic): public String login() throws Exception { return "home"; } And this is the Tomcat response: type: Status report message: No

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
thank you Alexander, I understand well now. Bye, Gianluca 2008/9/23 Alexander Baetz <[EMAIL PROTECTED]>: > here a longer explanation: > > when I realizes the user isnt authenticated the link (the action to be > called) is saved (in a bean, a session, somewhere where you find it back > later)

Re: quest on dynamic redirect

2008-09-23 Thread Alexander Baetz
here a longer explanation: when I realizes the user isnt authenticated the link (the action to be called) is saved (in a bean, a session, somewhere where you find it back later) then the user logs himself in. the login action logs him in, checks if a redirect was saved (in the bean, the sessio

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
Thank you. I can't understand how to realize the redirect descripted here: > - during the login action, after the login is confirmed the action realizes > that a redirect is requestet (to a.action) Particulary I can't understand what it means: > ${redirectTo} Do you have a sample? Gianluca

RE: quest on dynamic redirect

2008-09-22 Thread Martin Gainty
nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Tue, 23 Sep 2008 01:23:50 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject:

Re: quest on dynamic redirect

2008-09-22 Thread Alexander Baetz
I thought of the same problem some time ago. - during the execution of I all information for the correct redirect is stored (session, bean... whatsoever) - during the login action, after the login is confirmed the action realizes that a redirect is requestet (to a.action) now the login action

quest on dynamic redirect

2008-09-22 Thread Gianluca Musella
This is my requirement: - the user asks for a resource, say A.action - the controller fires a custom interceptor I to authenticate the user - user isn't authenticated, so I redirect to L, the login page - user enters valid credentials - the controller redirect to the original requested A.action T