aspose 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
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: 60056
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is Wrong with the filter and filter-mapping in My web.xml?
 
Similar Threads
Problem in Struts : Error 404 : servlet action as unavailable
Failed to load servlet:
Error: dont execute actions
Servlet Action currently Unavailable
Cannot find bean org. apache. struts. taglib. html. BEAN in any scope