I have been utilizing the Convention plugin within Struts 2.1.8.1
While I can get the exceptions mappings to work on a class level, I
was wondering if there were a way to get a global exception handler
to work on the package level as traditionally defined within the
package node of struts.xml
Below are the annotations I use within one of my classes.
@Results({
@Result(name="error",location="/home"),
@Result(name="exception", location="/jsp/error.jsp")
})
@ExceptionMappings({
@ExceptionMapping(exception="java.lang.Exception",result="exception")
})
All this said, I am unclear as to how I would go about defining a
package node in struts.xml that would extend the convention-default
(which extends struts-default), and then define global-exceptions and
global-mappings nodes that apply to all of my classes within that
package.
Thanks,
-anthony
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]