I know how to fine a global error redirect page in our defined package when exception encountered that just by adding the following configuration in the parent package in
You should define your unknown handler in the struts.xml
. Unknown handlers are called by the framework, when an unknown action, result, or method are executed.
<bean type="com.opensymphony.xwork2.UnknownHandler" name="handler" class="com.package.SomeUnknownHandler"/>
The class should implement UknownHandler
interface to handle the cases:
Here some detaiks a how you can use the UknownHandler
(https://stackoverflow.com/a/27881698/3383543), enjoy.