struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <>
Subject Re: Convention Plugin - dynamically setting the result
Date Thu, 08 Apr 2010 10:01:17 GMT
2010/4/8 RogerV <>:
> 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?

Kapituła Javarsovia 2010

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message