struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Aggarwal" <n...@JAMMConsulting.com>
Subject RE: [S2] How to apply formatting to s:property?
Date Wed, 01 Aug 2007 19:52:02 GMT
Dave:

I moved it to a struts.properties file:

format.money={0,number,currency}

with no change to the output.

Also, according to this page, I should be able
to put it in either struts.xml or struts.properties:

http://struts.apache.org/2.x/docs/constant-configuration.html

Any ideas?

Thanks,
	Neil 

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Wednesday, August 01, 2007 2:42 PM
To: Struts Users Mailing List
Subject: RE: [S2] How to apply formatting to s:property?

--- Neil Aggarwal <neil@JAMMConsulting.com> wrote:
> <s:text name="format.money"><s:param name="value"
> value="12345"/></s:text>
> 
> The outputs format.money instead of $12.345.00 which
> I expected.
> 
> I defined the format in the struts.xml file like
> this:
> 
> <constant name="format.money"
> value="{0,number,currency}" /> 
> 
> Any ideas?

Try putting it in a properties file.

http://struts.apache.org/2.x/docs/text.html

d.



       
____________________________________________________________________________
________Ready for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

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


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


Mime
View raw message