wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60737
    
  65

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is Wrong with the filter and filter-mapping in My web.xml?
 
Similar Threads
Cannot find bean org. apache. struts. taglib. html. BEAN in any scope
Servlet Action currently Unavailable
Problem in Struts : Error 404 : servlet action as unavailable
Failed to load servlet:
Error: dont execute actions