aspose file tools*
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

Why does this pattern not map to the fitler?

Dan Bizman
Ranch Hand

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


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:


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

Joined: Jan 10, 2002
Posts: 60059

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:
subject: Why does this pattern not map to the fitler?
Similar Threads
Form Based Authentication
How to secure my page
"Spring Security Application" Initiated by Apache
How do I secure only my login page? Please help!
Why is this url-pattern combo not working?