struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianluca Musella" <gianluca.muse...@gmail.com>
Subject Re: quest on dynamic redirect
Date Tue, 23 Sep 2008 11:16:35 GMT
It works fine. Thank you Alex, thank you Lukasz.


2008/9/23 Gianluca Musella <gianluca.musella@gmail.com>:
> ok, it sounds better.
>
> thank you Lukasz
>
>
> 2008/9/23 Lukasz Lenart <lukasz.lenart@googlemail.com>:
>>>        <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";
>>>    }
>>>
>>
>> You have to add getter
>>
>> String getRedirectTo() {
>>  return this.redirectTo;
>> }
>>
>> and in login() method
>>
>> public String login() throws Exception {
>>  this.redirectTo = "home";
>>  return "redirect";
>> }
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message