No the original problem statement was that the JSTL fmt tags were picking up the French text even though the locale was set to English, the Struts tags are working correctly. The only thing that I can think of is that the Config class isn't working properly in this situation. With Struts I set the Session Attribute directly, with JSTL, I used the Config.set() method. (*Chris*)
On 11/7/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]