wood burning stoves*
The moose likes Servlets and the fly likes Why does this pattern not map to the fitler? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Why does this pattern not map to the fitler?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
If I map:

<url-pattern>/secure/login</url-pattern>

to my filter (login is not a servlet, it's a fake name), then when the browser points there, it never calls the filter. HOWEVER, if I map the following:

<url-pattern>*login</url-pattern>

and then point to "/secure/login" in the browser it DOES call the filter.

Why is that? Isn't that a mistake?

The following also never calls the filter: "/secure/*login".
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60991
    
  65

Let's keep the discussion of your filter mapping issues to the existing topics.
[ October 27, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why does this pattern not map to the fitler?