2010/4/8 RogerV <roger.var...@googlemail.com>:
> I'm trying to develop an action mapper type of action. The action analyses
> the incoming parameters and based on those I want to dynamically select the
> action to handle the next step. So what I'm trying to do is to set a string
> field called location with the string name of the action and using the
> annotation
> @Result(name="service", type="redirectAction",location="%{location}"). This
> is not working - I get redirected to my application default startup page.
>
> Before I go digging deeper, could someone confirm that it is possible to use
> OGNL to set the location in the @Result annotation at run-time or must the
> annotation be set at compile-time.

Yes, it's possible, do you have getLocation() method in that action?


Regards
-- 
Łukasz
http://www.lenart.org.pl/
Kapituła Javarsovia 2010
http://javarsovia.pl

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

Reply via email to