Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-19 Thread Alex Rodriguez Lopez
I'm using a combination of empty extension and exclusions for static content which works well now. Got pretty confused too at beginnning when I changed to an empty extension though: http://struts.apache.org/2.2.1/docs/static-content.html in web.xml: struts2 org.apache.struts2.

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-18 Thread Lukasz Lenart
2010/10/18 Eric Nielsen : > Here are my filters from web.xml > >     >      struts-cleanup >       > org.apache.struts2.dispatcher.ActionContextCleanUp >     >     >      sitemesh >       > org.apache.struts2.sitemesh.FreemarkerPageFilter >     >         >          Spring OpenEntityManagerInViewFil

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-18 Thread Eric Nielsen
Li Ying wrote: >Are your setting: > >? Yes, I was intentionally setting the extension to the empty string. This used to work under the SmartUrls plugin in 2.0.x days. I've dug though and found the comments in his source about how the author made that work. First switched to using "action" as the

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-18 Thread Li Ying
By the way, if you DO want to set the extension of action to "", try: See if it works. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-18 Thread Li Ying
Are your setting: ? Try delete it, use the default setting instead. I take a quick look of the struts source code. In [org.apache.struts2.dispatcher.mapper.DefaultActionMapper], it use the extension of request url to detect if this request should be mapped to an Action. If you set this consta