Creating Struts 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.
To create a Struts exception, complete the following steps:
- In the Project Navigator of the Web perspective (Window > Open Perspective > Web), right-click the name of a project.
- Click New > Other > Web > Struts > Struts Exception > Next.
- Select a configuration file from the "Configuration file" drop-down menu.
- Click Browse and select an exception type.
- Type the path name of your exception handler to be created.
- Click Browse and select an exception handler class name.
- Click one of the following radio buttons to select the exception context:
- Global
- Local to action-mapping
- Specify a key name for your exception.
- Click Finish.
Related concepts
Struts exceptions
Related tasks
Setting preferences for Struts development tools
Related reference
Feedback
Icons used by the Struts Explorer view