Hello,
I done the following :
- stored the language in session
- created a BaseServletClass that contains code to load bundels at startup
- make my other servlets extend the BaseServletClass instead of HttPServlet
The only problem comes with non servlet classes, it i do something similar
they load the bundle at each instaciation which is not too good.
I think that by implementing Signleton pattern it is possible to come around
this, but that implies a lot of changes.
I would also be interested in hearing opinions in the subject.
Philippe
= = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Philippe Bertramo
World Customs Organization
Brussels - Belgium
-----Original Message-----
From: De_Miguel Martin [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 25, 2000 11:45
To: [EMAIL PROTECTED]
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
___________________________________________________________________________
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