THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
With 2.1.6 it appears that the struts filter attempts to match all requests to action actions even if they do not have a .action suffix (even when not using the conventions plugin.) If you have non-action requests then you will may need to modify the struts filter mapping so that only action requests are matched. I In the example below I've changed the url-pattern to be "*.action" since I only want requests with a .action suffix to be handled by struts.
The web.xml after:
Code Block |
---|
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.action</url-pattern> </filter-mapping> |
...