You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nathan Coast <na...@levelseas.com> on 2001/12/17 18:53:29 UTC

internationalization numeric formats

Hi,

does struts support different formats for numbers dependent upon the locale
of the user?  I've had a look in the bean write tag code which seems to
indicate using keys such as org.apache.struts.taglib.bean.format.float.
Should this be used in the Application.properties and
Application_de.properties files e.g:

org.apache.struts.taglib.bean.format.float=###,###,###,###,###.###

Cheers Nathan


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper at LevelSeas for the presence of computer viruses.

**********************************************************************

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: internationalization numeric formats

Posted by Oleg V Alexeev <oa...@apache.org>.
Hello Nathan,

Monday, December 17, 2001, 8:53:29 PM, you wrote:

NC> Hi,

NC> does struts support different formats for numbers dependent upon the locale
NC> of the user?  I've had a look in the bean write tag code which seems to
NC> indicate using keys such as org.apache.struts.taglib.bean.format.float.
NC> Should this be used in the Application.properties and
NC> Application_de.properties files e.g:

NC> org.apache.struts.taglib.bean.format.float=###,###,###,###,###.###

NC> Cheers Nathan

Yes, you can define format string for every locale you use. You can
define default format string as

  org.apache.struts.taglib.bean.format.float=###,###,###,###,###.###

or you can define special format for every locale and specify it in
bean:write tag with 'formatKey' attribute -

  may.float.format=####.####

  <bean:write name="floatValue" formatKey="may.float.format"/>

NC> **********************************************************************
NC> This email and any files transmitted with it are confidential and
NC> intended solely for the use of the individual or entity to whom they
NC> are addressed. If you have received this email in error please notify
NC> the system manager.

NC> This footnote also confirms that this email message has been swept by
NC> MIMEsweeper at LevelSeas for the presence of computer viruses.

NC> **********************************************************************

NC> --
NC> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
NC> For additional commands, e-mail: <ma...@jakarta.apache.org>



-- 
Best regards,
 Oleg                            mailto:oalexeev@apache.org



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>