I was getting message that "filter" was not declared. I moved the filter elements
before the servlet element and then changed the doctype to:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
On Thursday, February 20, 2003, at 01:32 AM, Alex Loubyansky wrote:
the problem is that, the order of elements in web.xml should match the
order of elements declaration in web-app_2_3.dtd or web-app_2_2.dtd
(depends on the spec version you use).
Here is the snippet:
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, filter*, filter-mapping*, listener*, servlet*, ...
So, make sure the filter declaration is not before any element it is
declared after.
alex
Wednesday, February 19, 2003, 11:58:09 PM, you wrote:
FM> I would like to run a filter on every jsp with 3.0.6. I thought if I
FM> put the following:
FM> <filter>
FM> <filter-name>Tidy</filter-name>
FM> <filter-class>com.base2inc.app.filter.FilterTidy</filter-class>
FM> </filter>
FM> <filter-mapping>
FM> <filter-name>Tidy</filter-name>
FM> <url-pattern>/*.jsp</url-pattern>
FM> </filter-mapping>
FM> in the web.xml file for the application that it would run the Tidy
FM> filter on each page.
FM> When I do this, I get the message:
FM> org.jboss.deployment.DeploymentException: Element "web-app" does not
FM> allow "filter" here.;
FM> Where is the right "here?"
------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user