Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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

...

...

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 through one or more XML documents, including the default struts.xml document. There are several elements that can be configured, including packages, namespaces, includes, actions, results, interceptors, and exceptions.

(lightbulb) See struts.xml for a working example.

Administrative Elements

Request Handling Elements

Error Handling

Next:

...

Configuration Files