You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@cgey.com> on 2003/04/01 11:12:27 UTC
localize messages in JSP without session
On logon.jsp I would like messages to be localized. AFAIK to do this with Struts I have to put this tags :
<html:html locale="true">
<bean:message key="logon.welcome" />
...
</html:html>
This tags use a Locale objet stored in session scope. My boss doesn't want this logon JSP to create a new session to
limit memory usage. Is they're a way to use Struts i18n with a REQUEST scoped Locale or something like this ?
Do you thing it could be an interseting enhancement for future versions ?
Nico.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: a small query
Posted by Nicolas De Loof <ni...@cgey.com>.
Using resourceBundle for application messages has some advantages :
- application can be localized easily if needed
- messages can be updated without recompile
- messages can be managed by customers on deployed app if they want
- bundle can be sent to customer for update / validation
- developers doesn't have to search some docs for the error message in some business case. They just define a new bundel
entry with some explicit name.
Nico.
> hi,
> firstly, i am very new to struts. these questions may sound very basic.
> my application has put all the text content to be seen in the view in
> .properties files.
>
> what is the need purpose to take data from the file.properties files?
>
> is it only for multi lingual sites? or any other reasons?
>
> how do i know that an application is support different languages.
>
> balraj
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
a small query
Posted by Balraj Goulikar <ba...@codecindia.com>.
hi,
firstly, i am very new to struts. these questions may sound very basic.
my application has put all the text content to be seen in the view in
.properties files.
what is the need purpose to take data from the file.properties files?
is it only for multi lingual sites? or any other reasons?
how do i know that an application is support different languages.
balraj
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org