struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rakeshxp <rakes...@gmail.com>
Subject Result Annotations
Date Fri, 29 Aug 2008 06:35:40 GMT

Hi,

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;
...
}

Thanks!
-- 
View this message in context: http://www.nabble.com/Result-Annotations-tp19214472p19214472.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message