I'm trying to develop a debug filter which traces the current URI.
Exemple :
page1.jsp :
...

...

...


I want my filter to log the current page.
Log example :
/page1.jsp
/page2.jsp
/page2.jsp
/page3.jsp
/page3.jsp
/page1.jsp

So here is my doFilter method :

public void doFilter(ServletRequest _request, ServletResponse
_response, FilterChain chain) throws ServletException,
IOException {
HttpServletRequest request = (HttpServletRequest)_request;
mylogmethod(request, "");
depth++;
chain.doFilter(_request, _response);
depth--;
mylogmethod(request, "");
}

But there is a problem, here is the log output :
/page1.jsp
/page1.jsp
/page1.jsp
/page1.jsp
/page1.jsp
/page1.jsp

Can someone explain me that ???
I am using weblogic 8.1 sp4

Thanks in advance