Yeh! That actually worked Thanks a lot!
with best wishes Alexander Kachanov -----Original Message----- From: Geeta Ramani [mailto:[EMAIL PROTECTED]] Sent: 16 �~�����q���� 2001 �s. 20:27 To: [EMAIL PROTECTED] Subject: Re: Filters in tomcat Alex: I am not dead certain about this, but I think you need to put the context params ahead of the filter params... worth a try anyways..! Geeta Alex Kachanov wrote: > 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, 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, 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
