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
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
> 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
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
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)
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
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
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:
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
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
10 matches
Mail list logo