I deployed a filter in the root application. I mapped the filter with the URL pattern /*, so that every call passes through the filter. My issue is the filter is being called twice for every call. What is going wrong?
Insert this code in your doFilter method. Maybe it is not the same request.
This way you will know if it is called twice always. Remember that multiple HTTP requests are made if you have images in a page (one for the page plus one for each image). Since your filter is mapped for "/*" it will intercept everything, including images.
Henrique Sousa<br />SCJP 1.4<br /> <br />All men die, not all men really live - Braveheart, 1995