Creating local exceptions

A Struts exception is an element defined in a Struts configuration file that specifies how to handle Java™ exceptions that occur during execution of Struts actions. You can define an exception handler to run when the

execute method of an action throws an exception.

  1. Create a Struts enabled Web project or enable an existing Web project with Struts support.

  2. Create a Struts action mapping.

A Struts exception is an element defined in a Struts configuration file that specifies how to handle Java exceptions that occur during execution of Struts actions.

To create a local exception:

  1. In your Web diagram, hover over the action for which you want to create a local exception.

  2. Click the Add Local Exception icon.

  3. To configure the local exception, double-click the local exception in your Web diagram. The Struts configuration file opens in the editor.