Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 "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
Tip

If the medium is the message, then the Struts Configuration is the application.

At runtime, there is a single configuration for an application. Prior to runtime, the configuration is defined Actions are configured through one or more configuration filesXML documents, starting with the default actionstruts.xml file document. There are several elements that can be configured, including packages, namespaces, includes, actions, results, and interceptors.

  1. Package Configuration
  2. Namespace Configuration
  3. Include Configuration
  4. Interceptor Configuration
  5. Action Configuration
  6. Result Configuration
  7. Interceptor Exception ConfigurationViews

Next: Interceptors