What I use:

First I store the ArrayList in the application context, with the locale identifies concatenated.
And other useful localized strings that are constants.

context.setAttribute(lang + "_" + Constants.YEAR_MONTHS, ym);


And in the action where there is a forward that will display that data, I pass the arraylist stored at context to the request scope.

ServletContext sctx = servlet.getServletContext();
ArrayList countriesList = new ArrayList();
countriesList = (ArrayList) sctx.getAttribute(getLanguage(request) +
               "_" + Constants.COUNTRIES);
 request.setAttribute(Constants.COUNTRIES, countriesList);


This is what I do. But I wanna know too, if people are using other methods.
Thanks

Jadeler escribió:

Im using a struts plugin to populate application wide
data such list of values, etc from the database and
then stored in a session.  I also use the application
resources bundles for text messages, labels, etc on my
jsp pages.
For displaying data pertaining to the locale the user
has selected (data Im tring to display is a drop down
of products), I've built a list of products from the
db and stored it in 2 sessions (one for french and one
for english).  Im planning to use the logic struts
tags to display these based on the locale.  Is this
recommended or are there other solutions?
Thanks.
Jadeler

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to