Hi, That's not a tomcat peculiarity, is the Servlets 2.3 especification. Other servlet container might deploy a web.xml even if it hasn't this order of tags, it that case, it has to be considered a bug.
-- Antoni Reus ----- Original Message ----- From: "Alex Kachanov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 12:56 PM Subject: Re: Filters in tomcat Hm, that's right! Thank you! I placed after <context-param> and BEFORE <session-config> if it's after <session-config> or before <context-param> it won't work I wounder where I could find this peculiarity in Tomcat documentation? with best wishes Alexander Kachanov -----Original Message----- From: Antoni Reus [mailto:[EMAIL PROTECTED]] Sent: 16 ?????? 2001 ?. 19:06 To: [EMAIL PROTECTED] Subject: Re: Filters in tomcat Order of the tags is important, try this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE .... > <web-app> <context-param> <param-name>driver</param-name> <param-value>org.postgresql.Driver</param-value> </context-param> <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> -- Antoni Reus ----- Original Message ----- From: "Alex Kachanov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 10:14 AM Subject: Filters in tomcat 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 ========================= To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ======================================================================== === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ========================= To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
