Struts configuration files
A Struts configuration file is an XML document that describes all or part of a Struts application. A Struts configuration file contains information about many types of Struts resources and configures their interaction.
A Struts configuration file contains the following categories of information:
- Data sources
- Form beans
- Global exceptions
- Global forwards
- Action mappings
- Message resources
To take effect, a Struts configuration file must be referenced from the Web deployment descriptor (web.xml file) for the configured Struts action servlet.
The Struts configuration file editor in the workbench is designed specifically to edit Struts configuration files. The XML editor has been enhanced to use the configuration file DTD.
If you create just one Struts configuration file, its default name is struts-config.xml.
Related concepts
Struts and model-view-controller design pattern
Struts actions
Struts forwards
Related tasks
Creating Struts configuration files
Editing Struts configuration files
Feedback