You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Ing. Jiří Mareš" <Ji...@seznam.cz> on 2003/07/21 21:55:23 UTC

Locale & struts

Hi,

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:
Jiri.Mares@seznam.cz)

______________________________________________________________________
Reklama:
"auto-plus". Ověřená kvalita ojetých vozů. Prověřený technický stav každého vozu. http://ad2.seznam.cz/redir.cgi?instance=53646%26url=http://www.auto-plus.cz 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org