struts-user mailing list archives

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


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.


- -chris
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla -


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

View raw message