struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart" <lukasz.len...@googlemail.com>
Subject Re: quest on dynamic redirect
Date Tue, 23 Sep 2008 10:56:24 GMT
>        <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


Mime
View raw message