struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarek M. Nabil" <>
Subject REPOST: Locale object in session
Date Tue, 18 Feb 2003 15:08:16 GMT
Sorry for reposting this message, but I haven't got any responses yet.

-----Original Message-----
From: Tarek M. Nabil 
Sent: Sunday, February 16, 2003 11:18 PM
To: Struts Users Mailing List
Subject: RE: Locale object in session

Thanks for the help.

I still get a "can&#39;t access SESSION_SCOPE without an HttpSession: java.lang.IllegalArgumentException:
can't access SESSION_SCOPE without an HttpSession" exception.

I think the <bean:message> tag is the cause of this exception. I tried looking in the
reference, and I cannot find a way of preventing this tag from searching for the Locale object
in the session.

Please help.


-----Original Message-----
From: Craig R. McClanahan []
Sent: Saturday, February 15, 2003 11:57 PM
To: Struts Users Mailing List
Subject: Re: Locale object in session

You'll need to do several things:

* Set the "locale" servlet init parameter (on the controller servlet)
  to "false".

* At the top of each JSP page, be sure to include:

    <%@ page session="false" %>

  so that JSP won't create a session for you

* If you use the <html:html> tag, use a locale="false" attribute
  there as well.


On Sat, 15 Feb 2003, Tarek M. Nabil wrote:

> Date: Sat, 15 Feb 2003 21:51:30 +0200
> From: Tarek M. Nabil <>
> Reply-To: Struts Users Mailing List <>
> To: "Struts (E-mail)" <>
> Subject: Locale object in session
> Hi everyone,
> I'm using Struts 1.0.2.
> I noticed that whenever a new session is created, Struts creates a locale object for
that user and stores it in his session. I need to disable session state in my application,
so how can I prevent Struts from doing this?
> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message