ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   web.xml error
Date:   2003-11-25 21:11:11
From:   anonymous2
<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
<init-param>
<param-name>/timemonger.jsp</param-name>
<param-value>nocache</param-value>
</init-param>
<init-param>
<param-name>cacheTimeout</param-name>
<param-value>1</param-value>
</init-param>
</filter-mapping>


The dtd for webapp 2.3 does not allow this, dont you mean to put your filter init-params in <filter>