struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ing. Jiří Mareš <>
Subject Locale & struts
Date Mon, 21 Jul 2003 19:55:23 GMT

I realized a problem with locale and automatic sesion creation. Event
if there is an attribute locale="false" in the <controller> the
session is automatically created when using validator, because
validator tries to get locale from a session and unfortunatelly uses
the getSession() method, that creates the session.

Is there any other way how to store the locale when user is not
logged in and the session should not exist? In request implied by the
browser preference? In cookie? Nowhere?

I didn't debug the code well, therefore I going wrong way. There
should be specified order where the locale is looked for like:

- in session (under specified key)
- in request (under the same key)
- in cookie
- in browser preference (generates the locale to session - if exists
and desired otherwise to locale)

Do you consider it as not "interesting"?

Jiri Mares (mailto:

"auto-plus". Ověřená kvalita ojetých vozů. Prověřený technický stav každého vozu. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message