I recently upgraded from Struts 2.0.x + SmartURLs to Struts 2.2.1 +
Convention plugin. However after upgrading all my static content is
no longer being served. I read all the release notes along the way
that I could find and nothing suggests that my old approach should
have stopped working. Can
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:
filter
filter-namestruts2/filter-name
I recently upgraded from Struts 2.0.x + SmartURLs to Struts 2.2.1 +
Convention plugin. However after upgrading all my static content is
no longer being served. I read all the release notes along the way
that I could find and nothing suggests that my old approach should
have stopped working. Can
Are your setting:
constant name=struts.action.extension value= /
?
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
By the way, if you DO want to set the extension of action to ,
try:
constant name=struts.action.extension value=, /
See if it works.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
Li Ying wrote:
Are your setting:
constant name=struts.action.extension value= /
?
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
2010/10/18 Eric Nielsen ericdniel...@gmail.com:
Here are my filters from web.xml
filter
filter-namestruts-cleanup/filter-name
filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class
/filter
filter
filter-namesitemesh/filter-name
7 matches
Mail list logo