You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2003/08/03 22:56:36 UTC

Re: RES: I18N in struts

 > How a method inside the FormBean can get the
 > current localization without receiveing aditional parameters?

Add a locale property to your ActionForm. Then, in the reset method set 
it to the Struts locale stored in the session.

-Ted.

RODRIGO CARVALHO DOS SANTOS wrote:
>     Yansheng,
> 
>     Thanks for your answer. I don´t know if I made myself clear. My problem
> isn´t dealing with Internationalization in Struts in general, but with the
> specific issue of formatting currency and date according to the locale. I
> would like to delegate the reponsibility to the FormBean methos
> getStringDate(), setStringDate(). getStringDate returns date in string
> formatted to the current locale. setStringDate() recognizes the string date
> according to the localization. How a method inside the FormBean can get the
> current localization without receiveing aditional parameters?
> 
>     Rodrigo.
> 
> -----Mensagem original-----
> De: Yansheng Lin [mailto:yansheng.lin@isogis.com]
> Enviada em: Friday, August 01, 2003 11:43 AM
> Para: 'Struts Developers List'
> Assunto: RE: I18N in struts
> 
> 
> This has been asked for many times:).
> 
> This link is a great starting point:
> 
> http://www.anassina.com/struts/i18n/i18n.html
> 
> 
> -----Original Message-----
> From: RODRIGO CARVALHO DOS SANTOS [mailto:RODRIGO.SANTOS1@bcp.com.br] 
> Sent: August 1, 2003 8:33 AM
> To: 'Struts Developers List'
> Subject: I18N in struts
> 
> 
> 
>     Hi All,
> 
>     Does Struts have a standard way to deal with internationalization in the
> ActionForm Bean? If I need to format a string date in the FrontEnd and pass
> as date data type back and foward to the backend, how may I use the
> Localization info?
> 
>     Thanks in advance for advices or links,
>     Rodrigo.
> 
> 
> 
> 
> 
> ***** Internet E-mail Confidentiality Footer ***** 
> "Esta mensagem pode conter informações privilegiadas e/ou confidenciais de
> propriedades da BCP Telecomunicações. Caso voce não seja o destinatário ou
> pessoa autorizada a recebe-la não poderá utiliza-la de forma alguma. Cópia,
> revelação ou quaisquer outras ações baseadas nestas informações não são
> autorizadas. Se voce recebeu esta mensagem de forma equivocada, por favor
> informe o emissor imediatamente respondendo a este email e em seguida
> eliminando-o. Agradecemos sua cooperação." 
> 
> "This message may contain confidential and/or privileged information belong
> to BCP Telecomunications. If you are not the addressee or authorized to
> receive this for the addressee, you must not use, copy, disclose or take any
> action based on this message or any information herein. If you have received
> this message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 
> ***** Internet E-mail Confidentiality Footer ***** 
> "Esta mensagem pode conter informações privilegiadas e/ou confidenciais de
> propriedades da BCP Telecomunicações. Caso voce não seja o destinatário ou
> pessoa autorizada a recebe-la não poderá utiliza-la de forma alguma. Cópia,
> revelação ou quaisquer outras ações baseadas nestas informações não são
> autorizadas. Se voce recebeu esta mensagem de forma equivocada, por favor
> informe o emissor imediatamente respondendo a este email e em seguida
> eliminando-o. Agradecemos sua cooperação." 
> 
> "This message may contain confidential and/or privileged information belong
> to BCP Telecomunications. If you are not the addressee or authorized to
> receive this for the addressee, you must not use, copy, disclose or take any
> action based on this message or any information herein. If you have received
> this message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> 
> 


-- 
Ted Husted,
   Junit in Action  - <http://www.manning.com/massol/>,
   Struts in Action - <http://husted.com/struts/book.html>,
   JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



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