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 |
---|---|---|---|
no | /WEB-INF/ | Web deployment descriptor to include all necessary WebWork components | |
no | /WEB-INF/classes/ | Main configuration, contains result/view types, action mappings, interceptors, etc | |
yes | /WEB-INF/classes/ | WebWork properties | |
yes | /WEB-INF/lib/webwork-x.x.jar | Default configuration that should be included in xwork.xml | |
yes | /WEB-INF/classes/ | Override the default velocity configuration | |
yes | /WEB-INF/classes/ | Define input validators to be used later | |
yes | /WEB-INF/classes/ | Define IOC components | |
no | /WEB-INF/lib/webwork-x.x.jar | Webwork tag library descriptor |
Static Content
TODO: how to serve your own static content