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
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
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
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()
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;
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
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
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
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
9 matches
Mail list logo