File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes What is Wrong with the filter and filter-mapping in My web.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What is Wrong with the filter and filter-mapping in My web.xml?" Watch "What is Wrong with the filter and filter-mapping in My web.xml?" New topic
Author

What is Wrong with the filter and filter-mapping in My web.xml?

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
First, thanks all for your attention.

I have checked the place where I should place <filter> and <filter-mapping> in web.xm. They should be after the <display-name>, before <servlet> and <servlet-mapping>.

However, as soon as I insert the <filter> and <filter-mapping> elements in my web.xml, all my struts-bean.tld, struts-html.tld, etc. in the web.xml cannot be found at the runtime.

Please help in identifying the problem. Thank you.

and my web.xml is:


and my web-xml is:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61082
    
  66

Not a JSP question. Moved to Servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

You have specified your web application to conform to 2.2 spec (as defined by the DOCTYPE in your web.xml). Filters were intorduced in the 2.3 version.

ram.
 
Consider Paul's rocket mass heater.
 
subject: What is Wrong with the filter and filter-mapping in My web.xml?