Return-Path:
key
is a key into your message resources properties f=
ile=20
that can be used to retrieve an error message.
+ If the handler
attribute is not specified, the default ha=
ndler
+ stores the exception in the request attribute under the value of the=20
+ Globals.EXCEPTION_KEY
global key.
+
+ The possible attributes for the "exception" element are as follows: +
+Attribute | +Description | +Default | +
---|---|---|
+ bundle
+ |
+
+ Servlet context attribute for the message resources bundle
+ associated with this handler. The default attribute is the
+ value specified by the string constant declared at
+ Globals.MESSAGES_KEY .
+ |
+
+ org.apache.struts.Globals.MESSAGES_KEY
+ |
+
+ className
+ |
+ + The configuration bean for this ExceptionHandler object. + If specified, className must be a subclass of the default + configuration bean + | +
+ "org.apache.struts.config.ExceptionConfig "
+ |
+
+ extends
+ |
+ + The name of the exception handler that this=20 + will inherit configuration information from. + | ++ None + | +
+ handler
+ |
+ + Fully qualified Java class name for this exception handler. + | +
+ "org.apache.struts.action.ExceptionHandler "
+ |
+
+ key
+ |
+ + The key to use with this handler's message resource bundle + that will retrieve the error message template for this + exception. + | ++ None + | +
+ path
+ |
+ + The module-relative URI to the resource that will complete + the request/response if this exception occurs. + | ++ None + | +
+ scope
+ |
+ + The context ("request" or "session") that is used to access + the ActionError object [org.apache.struts.action.ActionError] + for this exception. + | +
+ "request "
+ |
+
+ type
+ |
+ + Fully qualified Java class name of the exception type to + register with this handler. + | ++ None + | +
You can override global exception handlers by defining a handler insid= e an=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org