Struts2 Configuration Elements
A web application uses a deployment descriptor to initialize
resources like servlets and taglibs. The deployment descriptor is
formatted as a XML document and named
Likewise, the framework uses a configuration file to initialize its own resources. These resources include:
web.xml. Likewise, the framework uses a configuration file to initialize its own resources. These resources include:
- Interceptors that can preprocess and postprocess a request
- Action classes that can call business logic and data access code
- Results that can prepare views, like JavaServer Pages and FreeMarker templates
struts.xml document. There
are several elements that can be configured, including packages,
namespaces, includes, actions, results, interceptors, and exceptions.Administrative Elements
- Bean Configuration
- Constant Configuration
- Package Configuration
- Namespace Configuration
- Include Configuration
Request Handling Elements
- Interceptor Configuration
- Action Configuration
- Wildcard Mappings
- Result Configuration
- Unknown Handlers
Error Handling
- Exception Configuration