Hi all,
in
http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=9840
Maciej Leks <[EMAIL PROTECTED]> wrote a solve to filtering incoming 
request. I would like to try this, but it doesn't works.

in tomcat's web.xml:

  <filter>
    <filter-name>CharSetEncoder</filter-name>
    <filter-class>com.zamek.turbine.tomcat.EncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>iso-8859-2</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>CharSetEncoder</filter-name>
    <url-pattern>/vili</url-pattern>
  </filter-mapping>


When tomcat starts it throw an error:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 861 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must 
match "(icon?,display-name?,
description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*
,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
PARSE error at line 861 column 11

I don't understand this, because filter and filter-mapping are matches to 
filter*,filter-mapping* .

What do I do wrong?
-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


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

Reply via email to