Versions Compared

Key

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

...

Two key configuration files utilized by the framework are web.xml and action.xml. The configuration elements in these two files will reference any other required or optional configuration files.

Below are all The table lists the files that you may need to be aware of. Some of this can use to configure the framework for your application. Some configuration files can be reloaded dynamically, making development much easier. Dynamic reloading makes interactive development possible. See Reloading configuration for more information.

File

Optional

Location (relative to webapp)

Purpose

web.xml

no

/WEB-INF/

Web deployment descriptor to include all necessary framework components

action.xml

no

/WEB-INF/classes/

Main configuration, contains result/view types, action mappings, interceptors, and so forth

action.properties

yes

/WEB-INF/classes/

Framework properties

action-default.xml

yes

/WEB-INF/lib/struts-action-x.x.jar

Default configuration that should be included in action.xml

velocity.properties

yes

/WEB-INF/classes/

Override the default velocity configuration

...