Hello:

I did some more testing.

I tried this:

<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?

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: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 2:20 PM
To: 'Struts Users Mailing List'
Subject: [S2] How to apply formatting to s:property?

Hello:

I am trying to apply formatting to a value
from s:property.

I tried this:

<s:text name="format.currency"><s:property
value="retailProductsCount"/></s:text>

but that did not format the value.  It only outputs
it unchanged.

Any ideas how to do this?

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to