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.
- Create a Struts enabled Web project or enable an existing Web project with Struts support.
- 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:
- In your Web diagram, hover over the action for which you want to create a local exception.
- Click the Add Local Exception icon.
- To configure the local exception, double-click the local exception in your Web diagram. The Struts configuration file opens in the editor.