You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Greg Jones <gj...@bellsouth.net> on 2002/08/22 20:55:30 UTC
Implementing servlet 2.3 filters
I tried to add a servlet filter into my web.xml file in tomcat and got
this error:
'org.xml.sax.SAXParseException: Element type "filter" must be declared.'
So, it thought I could update the web_xml.dtd to 2_3 but then some of
cocoons configuration is not setup to support that dtd.
Does anyone know how to utilize the filter tags and cocoon. I don't want
to create a global filter. I want to put it into the local web apps
WEB-INF directory.
Anyone come across this issue:
- Thanks for helping
Re: Implementing servlet 2.3 filters
Posted by Vadim Gritsenko <va...@verizon.net>.
Greg Jones wrote:
> I tried to add a servlet filter into my web.xml file in tomcat and got
> this error:
>
> 'org.xml.sax.SAXParseException: Element type "filter" must be declared.'
>
> So, it thought I could update the web_xml.dtd to 2_3 but then some of
> cocoons configuration is not setup to support that dtd.
>
Have you specified correct DTD?
Vadim
> Does anyone know how to utilize the filter tags and cocoon. I don't
> want to create a global filter. I want to put it into the local web
> apps WEB-INF directory.
>
>
> Anyone come across this issue:
>
> - Thanks for helping
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Implementing servlet 2.3 filters
Posted by Jens Lorenz <je...@interface-projects.de>.
Implementing servlet 2.3 filters----- Original Message -----
From: Greg Jones
To: cocoon-users@xml.apache.org
Sent: Thursday, August 22, 2002 8:55 PM
Subject: Implementing servlet 2.3 filters
Greg,
> I tried to add a servlet filter into my web.xml file in tomcat
> and got this error:
> 'org.xml.sax.SAXParseException: Element type "filter" must be declared.'
> So, it thought I could update the web_xml.dtd to 2_3 but then some of
> cocoons configuration is not setup to support that dtd.
> Does anyone know how to utilize the filter tags and cocoon. I don't want
> to create a global filter. I want to put it into the local web apps
> WEB-INF directory.
>
>
> Anyone come across this issue:
> - Thanks for helping
I've used successfully a servlet filter with cocoon. You probably changed
the wrong dtd. DTD declaration of cocoon's web.xml needs to be changed to
and you have to use Servlet 2.3 container.
Jens
--
jens.lorenz at interface-projects dot de
interface:projects GmbH \\|//
Tolkewitzer Strasse 49 (o o)
01277 Dresden ~~~~oOOo~(_)~oOOo~~~~
Germany
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>