Dashboard > WebWork > ... > Configuration Files > web.xml
  WebWork Log In View a printable version of the current page.  
  web.xml
Added by Cuong Tran, last edited by Rainer Hermanns on Apr 13, 2007  (view change)
Labels: 
(None)

For those using all the latest features of WebWork and have no requirement for backwards compatibility, configuring web.xml is a matter of adding a single filter and, if you're using JSP, a taglib. However, those upgrading from version 2.1.7 of earlier may need to do a bit more work to get everything in order. See web.xml 2.1.x compatibility for more information.

The filter is configured as:

<filter>
    <filter-name>webwork</filter-name>
    <filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
    <filter-name>webwork</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

For those using JSP, you may also configuration the tag library as:

<!--
    This typically isn't required, as the taglib is included in webwork.jar.
    If you really need a taglib configuration within web.xml, copy webwork/src/java/META-INF/taglib.tld
    to the WEB-INF directory as webwork.tld.
 -->
<!--taglib>
    <taglib-uri>webwork</taglib-uri>
    <taglib-location>/WEB-INF/webwork.tld</taglib-location>
</taglib-->
In case you want to use SiteMesh for page decoration, you should add some additional filters

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators