This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes web.xml: url-pattern in filter-mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "web.xml: url-pattern in filter-mapping" Watch "web.xml: url-pattern in filter-mapping" New topic
Author

web.xml: url-pattern in filter-mapping

Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
In Tomcat 4.1.24, if I have this in my application's web.xml file:

the filter never gets called for any of my JSPs. But if I change the url-pattern line to this:

the filter does get properly invoked.
Can someone explain why? All of my JSPs are at the top level of my web application's directory, so they all should match the pattern /*.jsp .
[ July 22, 2003: Message edited by: Ron Newman ]

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml: url-pattern in filter-mapping
 
Similar Threads
404 in using acegi security with Spring
JSP Filter with Struts
filter mapping to specific JSP
Query on url-pattern element of web.xml file ??
what is displaytag filter. How is it used ?