This is a discussion on [FILTER] request uri value in an included page - Weblogic ; 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 ...
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, ""); /page1.jsp
}
But there is a problem, here is the log output :
/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