Hi Matt,

These are my SOPs within the filterInternal method of the LocaleFilter

System.out.println("The default locale is ******"+locale.getCountry());
System.out.println("This locale is*****"+locale);
System.out.println("preferred locale is *****"+preferredLocale);

I access the login page and this gets printed out repeatedly around 35
times:

The default locale is ******US
This locale is*****en_US
preferred locale is *****en_IN

Also it doesnt set the Prefered Locale




mraible wrote:
> 
> Can you post your log messages that make you think it's getting executed
> twice?
> 
> Matt
> 
> On 7/10/07, VJ22 <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> I had commented out the usage of the LocaleFilter initially from the
>> web.xml
>> as I did not have a need for it....We did have a requirement to have a
>> user
>> defined locale so I uncommented out the filter settings....I am using
>> Struts
>> 2 + Spring + JPA...While the filter does get executed, in my action class
>> when I debug the flow, when I call getRequest().getLocale() it still
>> seems
>> to pick up the default locale....the log.debugs within the execute method
>> seem to be getting called before the filter gets executed and the
>> log.debugs
>> within the filter get printed out....Also, since it implements the
>> OncePerRequest filter I assume that the filter gets executed only once
>> per
>> request, but it seems to be executing it multiple times....Is there
>> anything
>> I am missing out ??
>>
>> Please do help me out
>>
>> Thanks...Vijay
>> --
>> View this message in context:
>> http://www.nabble.com/Locale-Filter-problem-tf4055035s2369.html#a11518415
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Locale-Filter-problem-tf4055035s2369.html#a11522224
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to