Struts2 Version 2.0.x handles unknown actions
In struts2 version 2.1.x, a new UnknownHandler appears that is triggered when a request comes in and the action name cannot be found.
The question is: what is the equivalent mechanism if it exists in versions 2.0.x?
I recently noticed from looking at the log files that throw exceptions when the action name is not properly resolved and this actually causes some problems. Is there a broad app customization to work with this?
0
a source to share
1 answer
Default value or default action?
http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod
<action name="*">
<result>/{1}.jsp</result>
</action>
...
<package name="Hello" extends="action-default">
<default-action-ref name="UnderConstruction">
<action name="UnderConstruction">
<result>/UnderConstruction.jsp</result>
</action>
...
+1
a source to share