Correct... I was thinking of the same thing.....I will be moving static content to the web server soon....Any idea on the mapping issue (*.action) ?
Thanks...Vijay mraible wrote: > > On 7/16/07, VJ22 <[EMAIL PROTECTED]> wrote: >> >> Hi Matt, >> >> My Struts 2 extension is ".action". I added it to the Locale Filter >> mapping >> but the filter does not seem to be going through...It works fine for >> ".html" >> and ".jsp" but not for ".action".....I am kind of tearing my head over >> this >> though the problem seems to be simple....I think the DispatcherFilter >> kicks >> in too somewhere... >> >> Also you should have the extension mapping defined in the new release of >> appfuse as ${ctx}/images always ends up calling the filter...as well as >> the >> javascript links.....just my 2 cents > > In 1.9.x, we had more fine-grained filter-mappings. We switched to > using /* to simplify the developer experience. I don't believe there's > a reasonable enough performance impact to change back at this point. > If you're really concerned about performance, you should put Apache in > front of Tomcat and serve up your static content that way. > > Matt > >> >> Please do let me know.... >> >> Thanks...Vijay >> >> >> >> mraible wrote: >> > >> > You might try changing your <filter-mapping> to include *.html and >> > *.jsp. We should probably make this change in AppFuse as well. >> > >> > As far as why the preferredLocale is not being set - you might want to >> > debug the filter and see if its logic is correct. You could also use >> > LocaleFilterTest to verify the proper functionality. >> > >> > Matt >> > >> > On 7/10/07, VJ22 <[EMAIL PROTECTED]> wrote: >> >> >> >> 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] >> >> >> >> >> > >> > >> > -- >> > 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#a11610353 >> >> 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#a11613411 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]