, August 01, 2007 3:23 PM
To: 'Struts Users Mailing List'
Subject: RE: [S2] How to apply formatting to s:property?
Dave:
OK, so I added this to my struts.xml:
constant name=struts.custom.i18n.resources
value=application.properties/
and I defined application.properties with this
content:
format.money
start by doing what it says on the
localization page as a sanity check *then* start to
play configuration / etc. games.
d.
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 01, 2007 3:23 PM
Subject: RE: [S2] How to apply formatting to
s:property?
Dave:
OK, so I added
-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:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 9:12 AM
To: Struts Users Mailing List
Subject: RE: [S2] How to apply
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
I tried moving the package.properties to
WEB-INF/classes so it would be application
wide but that seems to be ignored.
Hmm, I guess I would have thought that would work, but
I've never tried.
I would still really like a way to make a global
To: Struts Users Mailing List
Subject: RE: [S2] How to apply formatting to s:property?
I'm not sure why the global resources property setting
doesn't work, although I would suspect a property file
naming / location / packaging issue. Comments on
https://issues.apache.org/struts/browse/WW-1647
suggests
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
I am trying to apply formatting to a value
from s:property.
I tried this:
s:text name=format.currencys:property
value=retailProductsCount//s:text
but that did not format the value. It only outputs
it unchanged.
What does your
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
So, is there no way to define a global format
for currency?
http://struts.apache.org/2.x/docs/localization.html
d.
Fussy? Opinionated? Impossible to please?
D-
Should that doc be updated?
s:property value=getText('some.key') /
I thought you could simply use the key attr now.
Scott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To: Struts Users Mailing List
Subject: RE: [S2] How to apply formatting to s:property?
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
So, is there no way to define a global format
for currency?
http://struts.apache.org/2.x/docs/localization.html
d
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
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:
:[EMAIL PROTECTED]
Sent: Wednesday, August 01, 2007 2:56 PM
To: Struts Users Mailing List
Subject: RE: [S2] How to apply formatting to s:property?
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
I moved it to a struts.properties file:
format.money={0,number,currency}
with no change to the output
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
s:text name=format.moneys: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} /
Hello:
I did some more testing.
I tried this:
s:text name=format.moneys: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
Mailing List
Subject: RE: [S2] How to apply formatting to s:property?
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
s:text name=format.moneys: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
14 matches
Mail list logo