File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Filter for logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Filter for logging" Watch "Servlet Filter for logging" New topic

Servlet Filter for logging

Pradeep Sahoo
Ranch Hand

Joined: Oct 13, 2002
Posts: 46
Can anybody provide me with sample code to use Servlet Filter Technology for logging every request received by my servlet as well as logging the response Stream.
The input request is in the form of an XML and same is the case with the output.
Thanks in advance

Pradeep<br />Consultant - Enterprise Solutions,<br />Infosys Technologies Ltd,<br />Bangalore, India
Ravi Kumar Ravuru
Ranch Hand

Joined: Apr 18, 2002
Posts: 176
Hello Pradeep,
I wish you to go through this tutorial regarding the servlet filters
<a href="">Servlet Filters</a>.It will help you.
Pradeep Sahoo
Ranch Hand

Joined: Oct 13, 2002
Posts: 46
Thanks Ravi,
It helped a lot although there is no direct example of what I am looking for.
I agree. Here's the link:
subject: Servlet Filter for logging
It's not a secret anymore!