but when i execute it the filter is getting executing thrice. can any one tell me the reason about it
my web .xml has
is there any way to make it execute once
Arvind Subramanian wrote:yes you are correct, but is there any other logic reduce that.
Once the user is authenticated set the token.
Next when the user comes request will be with the user token.
Arvind Subramanian wrote:
And also i have one problem , i cant able to get the img and css for my login page ... is there any other logic to handle this more efficiently
What issue your are getting with this.
Check the path definition, could be a path issue.
Arvind Subramanian wrote:in url pattern i provided /* , but there is no other way to secure the whole webapplication. is there any way to write exception in filter?
Which URL pattern you are talking about.
I am saying you to check the img source attibute value in your JSP/HTML.
And look where exactly the css file is located.
And Exception filter for what?