Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Why does this pattern not map to the fitler?

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's keep the discussion of your filter mapping issues to the existing topics.
[ October 27, 2006: Message edited by: Bear Bibeault ]
 
    Bookmark Topic Watch Topic
  • New Topic