Hello!!

Hm. I'm really confused.

I've just read the article at IMB developerWorks about filters in 
Tomcat and tried to implement it.

When I add filter information to web.xml Tomcat throuws a PARSE error
message

So it appears filters wok fine when I have nothing except 
filter declarations in web.xml file which is not typical 
for real application.


this web.xml won't work:
===================================

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE .... >

<web-app>
   <filter>
        <filter-name>IE Filter</filter-name>
        <filter-class>IEFilter</filter-class>
   </filter>
   <filter-mapping>
        <filter-name>IE Filter</filter-name>
        <url-pattern>/*</url-pattern>
   </filter-mapping>

   <context-param>
      <param-name>driver</param-name>
      <param-value>org.postgresql.Driver</param-value>
   </context-param>   

</web-app>



But this web.xml works fine:
===================================

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE .... >

<web-app>
   <filter>
        <filter-name>IE Filter</filter-name>
        <filter-class>IEFilter</filter-class>
   </filter>
   <filter-mapping>
        <filter-name>IE Filter</filter-name>
        <url-pattern>/*</url-pattern>
   </filter-mapping>
</web-app>

=====================================================


Any ideas? Am I doing smth. wrong?


with best wishes
Alexander Kachanov

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to