Versions Compared

Key

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

Like many other Web frameworks, WebWork requires a number of configuration files to determine how it should work.

File

Optional

Location (relative to webapp)

Purpose

web.xml

no

/WEB-INF/

Web deployment descriptor to include all necessary WebWork components

xwork.xml

no

/WEbWEB-INF/classes/

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

webwork-default.xml

yes

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

Default configuration that should be included in xwork.xml

webwork.properties

yes

/WEB-INF/classes/

WebWork properties

velocity.properties

yes

/WEB-INF/classes/

Override the default velocity configuration

validators.xml

yes

/WEB-INF/classes/

Define input validators to be used later

components.xml

/WEB-INF/classes/

Define IOC components

taglib.tld

no

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

Webwork tag library descriptor