...
File | Optional | Location (relative to webapp) | Purpose | ||
---|---|---|---|---|---|
no | /WEB-INF/ | Web deployment descriptor to include all necessary framework components | |||
no | /WEB-INF/classes/ | Main configuration, contains result/view types, action mappings, interceptors, and so forth | |||
yes | /WEB-INF/classes/ | Framework properties | |||
yes | /WEB-INF/lib/struts-action-x.x.jar | Default configuration that should be included in | |||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6f9d579a-e7d0-4c91-bb80-43fe5a4454ed"><ac:plain-text-body><![CDATA[ | [velocity.properties] | yes | /WEB-INF/classes/ | Override the default velocity configuration [Velocity] configuration | ]]></ac:plain-text-body></ac:structured-macro> |
Static Content
Common static content that is needed by the framework (JavaScript and CSS files, etc.) is served automatically by the FilterDispatcher filter. Any request starting with "/action/
" denotes that static content is required, and then mapping the value after "/action/
" to common packages in Struts Action 2 and, optionally in the applciation's class path.
...