struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ing. Jiří Mareš <Jiri.Ma...@seznam.cz>
Subject Locale & struts
Date Mon, 21 Jul 2003 19:55:23 GMT
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


Mime
View raw message