struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject RE: [S2] How to apply formatting to s:property?
Date Thu, 02 Aug 2007 14:11:32 GMT
--- Neil Aggarwal <neil@JAMMConsulting.com> wrote:
> Did you give up on this?

No, I'm just not actually physically attached to my
computer and teh intarwebs 24/7 and the boss keeps
blathering on and on about some sort of "do stuff for
me" BS.

I haven't done anything with setting the
i18n.resources property, so I can't help you with
that. I'm not sure why you don't just put something in
to a package.properties (it's hierarchical, you can
put it anywhere) or ActionSupport.properties, etc.

I've never run an app w/o the i18n interceptor so I
don't know what effect (if any) that would have.

I would 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:neil@jammconsulting.com]
> Sent: Wednesday, August 01, 2007 3:23 PM
> 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={0,number,currency} 
> 
> But, I still get format.money for the output.
> 
> Do I need to use the Il8n interceptor somewhere?
> 
> 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 3:10 PM
> To: Struts Users Mailing List
> Subject: RE: [S2] How to apply formatting to
> s:property?
> 
> --- Neil Aggarwal <neil@JAMMConsulting.com> 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? Perfect. 
> Join Yahoo!'s user panel
> and lay it on us.
>
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> 
> 
> 
>
---------------------------------------------------------------------
> 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
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7




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


Mime
View raw message