wHY dont you preload and cache all the available resource bundles and
then hash map the language to the resource bundle. Use the locale `en_gb'
to map to your resource bundle in a shared data object.
--

Peter Pilgrim
Welcome to the "Me Too" generation.



---------------------------------------- Message History 
----------------------------------------


From: [EMAIL PROTECTED] on 25/09/2000 09:44

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  ResourceBundle



09/25/2000 11:44 AM
(subscript: Martin De Miguel Lillo@TSM)
Hi all,

I want to internationalizate a website and i have two ways to do it :

 1.- Put ResourceBundle into session and gets in all servlets : This is the
easier way but parameter ResourceBundle can be too big to store into session and
it can overload server.

2.- Put language into session and gets ResourceBundle in each servlet : Better
for server but much cost to repeat in all servlets same code.

What you think is better way?

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html





--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to