• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filter configuration in spring security

 
kuldeep sidhu
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using spring-security for basic login for my application and various levels of access..
In web.xml i have configured the filter as follows



My doubts are as follows-
1. In the above snippet is it necessary to define filter before filtermapping tag? I try reversing the order i was getting some exception filter not found etc..How web.xml is parsed?
2. In url-pattern what is the difference between /, /* and /**.
I tried /** but it was not working. /* is working perfectly.
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Yes. web.xml follows a schema that has to be followed while writing the file (check your web.xml to see xsd location).
2. Yes, /** is not a valid url pattern. /*, /*.do, /admin/* etc. are some valid patterns.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic