Thanks Laurie. Btw, I actually meant the application
context, not the session.
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Jadeler wrote:
> > 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?
>
> If the data is application wide, why store it
> repeatedly in each
> session? Just store it once, in application context.
> For application
> wide data that's localized, put it in a map keyed by
> locale and put the
> map in application context. Storing it in sessions
> just means that every
> session using a particular locale will have a
> redundant copy of the same
> data.
>
> L.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________________
Find your next car at http://autos.yahoo.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]