Is your JSP being accessed directly?
If so, you may need to let the Struts RequestProcessor do its work first.
then access it the way you would other Struts actions:
http://domain/myApp/myPage.do
Hubert
On 11/4/05, Łukasz Piątkowski <[EMAIL PROTECTED]> wrote:
> Hello !
>
> I have a problem with accessing LOCALE in my TAG class. When I want
> to get LOCALE in my ACTION class I use :
>
> request.getSession().getAttribute(Globals.LOCALE_KEY) - and it works fine
>
> in my TAG class I use :
>
> pageContext.getSession().getAttribute(Globals.LOCALE_KEY) - it is null
>
> This is the fragment of my code :
> "if(pageContext.getSession().getAttribute(Globals.LOCALE_KEY)!=null)
> {
>
> loc=(Locale)pageContext.getSession().getAttribute(Globals.LOCALE_KEY);
> lwriter.print("SESSION LOCALE");
> }
> else
> {
> loc=Locale.getDefault();
> lwriter.print("SERVER LOCALE");
> }
> "
> It always returning SERVER LOCALE :(
>
> Please HELP !
>
> Kind Regards, Lukasz
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>