--- On Fri, 8/29/08, rakeshxp wrote: > I am using Result annotations in the following manner (static way ) > @Results({ > @Result(name = "index", value = > "/jsp/en_US/help.jsp") > }) > > How can I pass a dynamic value to the result annotation, so > that I can achieve something like this > > @Results({ > @Result(name = "index", value = "/jsp/${locale}/help.jsp"), > @Result(name = "show", value = "${show}" ) > }) > public class HelpController { > private String locale; > private String show; > ... > }
By either (a) providing getLocale()/getShow() methods or making locale/show public. The other response saying it wasn't possible is incorrect; while it's true that the annotations are scanned on startup, the value is evaluated at runtime. See [1] for more information; annotations share the same ability. Dave [1] Parameters in configuration results http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]