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: result name=redirect

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

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) then

Re: quest on dynamic redirect

2008-09-23 Thread Gianluca Musella
Mmm... doesn't work. This is in my struts.xml: action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I omitt logic): public String login()

Re: quest on dynamic redirect

2008-09-23 Thread Lukasz Lenart
action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I omitt logic): public String login() throws Exception { return home;

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]: action name=login class=org.almayer.web.action.SessionAction method=login result name=redirect type=redirectAction${redirectTo}/result /action This is the login action's method (I

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]: action name=login class=org.almayer.web.action.SessionAction method=login result

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

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