<filter-class>com.test.FilterTest</filter-name>
                                                            ^^^^^^^^^^^ //
should be </filter-class>
Failing that, i'd have to see the error but my guess is that you have the
order of things in your web.xml wrong.

<filter> tags should appear after <context-param> and before <listener>
tags. See your dtd for more details. I use
http://java.sun.com/web-app_2_3.dtd

----- Original Message -----
From: "Felipe Schnack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 2:21 PM
Subject: filter


>   I'm using Tomcat 4.0.4
>   I'm trying to declare a filter in web.xml file, but it refuses to
> work. Here is what I wrote:
>   <filter>
>     <filter-name>testFilter</filter-name>
>     <filter-class>com.test.FilterTest</filter-name>
>   </filter>
>   When I start Tomcat it says my XML is invalid. What I'm doing wrong?
>
> --
>
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> [EMAIL PROTECTED]
> Fone/Fax.: (51)32303328
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to