I am working on a tomcat application. I am trying to add CSRF authentication token provided by catlina library(org.apache.catalina.filters.CsrfPrevention). I have added filt
Finally I got the answer. I am posting it here for others.
For rendering the JSP I was using the RequestDispatcher object
dispatcher.forward(request, response);
So the filter was not getting applied to the given url. Finally I found the answer. Either I should have used dispatcher in parameter with the filter or response.sendRedirect method in Servlet handler.
http://www.theserverside.com/news/thread.tss?thread_id=34168