You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

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

  1. web.xml
  2. xwork.xml
  3. webwork-default.xml
  4. Results
    1. Global results
    2. Default results
  5. Interceptors
  6. Packages
  7. Namespaces
  8. Reloading configuration
  9. webwork.properties
  10. velocity.properties

Below are all the files that you may need to be aware of. Note that only the first three are required.

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

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

  • No labels