Main Configuration Files
WebWork has two main configuration files you need to be aware of: Two key configuration files utilized by the framework are web.xml
and xwork action.xml
. Here you will find out all the information you need for both WebWork's required and optional configuration filesThe configuration elements in these two files will reference any other required or optional configuration files used by the framework.
Below are all the files that you may need to be aware of. Some of this configuration files can be reloaded dynamically, making development much easier. See Reloading configuration for more information.
...
Common static content that is needed by webwork the framework (JavaScript and CSS files, etc.) is server served automatically by the FilterDispatcher filter. Any request starting with "/
webworkaction/
" denotes that static content is required, and then mapping the value after "/
webworkaction/
" to common packages in WebWork Struts Action 2 and, optionally in your the applciation's class path.
By default, the following packages are searched:
- comorg.apache.opensymphonystruts.webworkaction2.static
- template
Additional packages can be specified by providing a comma seperated list to the configuration parameter named "packages" (configured in web.xml for the FilterDispatcher filter). When specifying additional static content, you should be careful not to expose sensitive configuration information (i.e. database password).