struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mujoko mujoko" <mujoko.muj...@gmail.com>
Subject Re: Result Annotations
Date Fri, 29 Aug 2008 08:16:50 GMT
Annotation Result is a part of of configuration (struts config) that read on
start up and load on startup, I dont think you can use dinamic
value on annotation.

Mujoko


On 8/29/08, rakeshxp <rakeshxp@gmail.com> wrote:
>
>
> 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
>
>


-- 
Mujoko

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message