[I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary

I have an action that sets the user's locale with Action.setLocale(). 
After I set the locale, I verify that it's been set with 
request.getSession().getAttribute(Action.LOCALE_KEY). It has.

Then the action forwards to a JSP page and within that JSP page, the 
locale is null, which I verify with
%= session.getAttribute(Action.LOCALE_KEY) %.

How do I make the locale stick, and why does it revert to null?

Thanks,


david


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread James Mitchell

That sounds a bit odd.  What container are you using?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: David Geary [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, August 31, 2002 10:51 PM
 To: [EMAIL PROTECTED]
 Subject: [I18N] Locale Mysteriously Reverts to null
 
 
 I have an action that sets the user's locale with Action.setLocale(). 
 After I set the locale, I verify that it's been set with 
 request.getSession().getAttribute(Action.LOCALE_KEY). It has.
 
 Then the action forwards to a JSP page and within that JSP page, the 
 locale is null, which I verify with
 %= session.getAttribute(Action.LOCALE_KEY) %.
 
 How do I make the locale stick, and why does it revert to null?
 
 Thanks,
 
 
 david
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: [I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary

Resin 2.1.2. I hadn't thought to try it with another container, so I 
tried it with Tomcat 4.1.3, and it works as expected, that is, the 
locale doesn't revert back to null.

I just assumed it was something I was doing wrong, but evidently it's a 
Resin bug.

Thanks,


david

James Mitchell wrote:

That sounds a bit odd.  What container are you using?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
  

-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 31, 2002 10:51 PM
To: [EMAIL PROTECTED]
Subject: [I18N] Locale Mysteriously Reverts to null


I have an action that sets the user's locale with Action.setLocale(). 
After I set the locale, I verify that it's been set with 
request.getSession().getAttribute(Action.LOCALE_KEY). It has.

Then the action forwards to a JSP page and within that JSP page, the 
locale is null, which I verify with
%= session.getAttribute(Action.LOCALE_KEY) %.

How do I make the locale stick, and why does it revert to null?

Thanks,


david


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  





Re: [I18N] Locale Mysteriously Reverts to null

2002-08-31 Thread David Geary

Resin 2.1.2. I hadn't thought to try it with another container, so I 
tried it with Tomcat 4.1.3, and it works as expected, that is, the 
locale doesn't revert back to null.

I assumed it was something I was doing wrong, but evidently it must be a 
Resin bug.

Thanks,


david

James Mitchell wrote:

That sounds a bit odd.  What container are you using?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
  

-Original Message-
From: David Geary [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 31, 2002 10:51 PM
To: [EMAIL PROTECTED]
Subject: [I18N] Locale Mysteriously Reverts to null


I have an action that sets the user's locale with Action.setLocale(). 
After I set the locale, I verify that it's been set with 
request.getSession().getAttribute(Action.LOCALE_KEY). It has.

Then the action forwards to a JSP page and within that JSP page, the 
locale is null, which I verify with
%= session.getAttribute(Action.LOCALE_KEY) %.

How do I make the locale stick, and why does it revert to null?

Thanks,


david


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]