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.
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
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
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
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
5 matches
Mail list logo