Versions Compared

Key

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

Main Configuration Files

WebWork has two main configuration files you need to be aware of: web.xml and xwork.xml. Here you will find out all the information you need for both WebWork's required and optional configuration files.

...

File

Optional

Location (relative to webapp)

Purpose

web.xml

no

/WEB-INF/

Web deployment descriptor to include all necessary WebWork components

xwork.xml

no

/WEB-INF/classes/

Main configuration, contains result/view types, action mappings, interceptors, etc

webwork.properties

yes

/WEB-INF/classes/

WebWork properties

webwork-default.xml

yes

/WEB-INF/lib/webwork-x.x.jar

Default configuration that should be included in xwork.xml

velocity.properties

yes

/WEB-INF/classes/

Override the default velocity configuration

Static Content

Common static content that is needed by webwork (JavaScript and CSS files, etc.) is server automatically by the FilterDispatcher filter. Any request starting with "/webwork/" denotes that static content is required, and then mapping the value after "/webwork/" to common packages in WebWork and, optionally in your class path.

...