struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Losing Locale after Sesion.invalidate()
Date Tue, 07 Nov 2006 20:31:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

Chris Pratt wrote:
> Thanks for the reply, and you read it correctly [snip]. Here is the 
> information I'm getting in my logs from all the debugging statements:
> 
> [10:08:43.179] I18NFilter.doFilter: Processing Request for
> /canada/logout.jsp
> [10:08:43.179] I18NFilter.doFilter: Using Locale from Request - en_US
> [10:08:43.179] I18NFilter.doFilter: Session (abcWr_wP-sVd1_Us3Md7q) is new
> and is valid
> [10:08:43.179] I18NFilter.doFilter: javax.servlet.jsp.jstl.fmt.locale=en_US

Okay, I don't see anything about the struts globals key. Is this because
you aren't printing it, or because it isn't in the session?


> [10:08:43.616] ShowConfigSettingsTag.doStartTag: JSTL Configuration
> Settings
> (abcWr_wP-sVd1_Us3Md7q)
> [10:08:43.616] ShowConfigSettingsTag.doStartTag:   *
> javax.servlet.jsp.jstl.fmt.locale null

That doesn't look right... didn't you set the locale in your filter? If
so, then why is this null?

> [10:08:43.632] ShowConfigSettingsTag.doStartTag: Struts Configuration
> Settings
> [10:08:43.632] ShowConfigSettingsTag.doStartTag:   *
> org.apache.struts.action.LOCALE en_US

That's very odd that the session apparently now contains the locale
under the struts key, and the JSTL ones is null. What's going on? I
thought you said that the JSTL stuff was working, but the struts was
not. This session information seems to disagree.

Your first set of output (from the I18NFilter) agrees with your report
that struts doesn't work and JSTL does, but the output from the
ShowConfigSettingsTag is the exact opposite.

Are you sure they are the same session (not sure why they wouldn't be,
but that could explain something).

> Weird.

Agreed.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUO0X9CaO5/Lv0PARAuj2AKColl8RxT73qqw6cc3EhHMqj3oM6gCgpcaI
M9glFqOB6UES817fccQERdw=
=cSrP
-----END PGP SIGNATURE-----

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


Mime
View raw message