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: Convention Plugin - dynamically setting the result
Date Thu, 08 Apr 2010 10:01:17 GMT
2010/4/8 RogerV <roger.varley@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message