struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam pinder <apin...@hotmail.co.uk>
Subject RE: Passing parameters to <s:property>
Date Thu, 04 Mar 2010 17:28:24 GMT

 

just pass an alias to the locale in the parameter

 

<s:property value="getName('US')"/>

 

and let the getName class handle the actual locale.

 

adam
 
> Date: Thu, 4 Mar 2010 18:20:19 +0100
> Subject: Re: Passing parameters to <s:property>
> From: lukasz.lenart@googlemail.com
> To: user@struts.apache.org
> 
> 2010/3/4 Ricardo Jorge <rvjsapi@gmail.com>:
> > PS: I've just tried the following but it did not work
> > <s:property value="name(@java.util.Locale@US)" />
> 
> Take a look on some examples here [1] and try
> <s:property value="getName(@java.util.Locale@US)" />
> 
> [1] http://struts.apache.org/2.x/docs/ognl-basics.html
> 
> 
> 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
> 
 		 	   		  
_________________________________________________________________
Tell us your greatest, weirdest and funniest Hotmail stories
http://clk.atdmt.com/UKM/go/195013117/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message