Extending Your BookShoppingServlet with a Simple Logging FilterNow consider an example filter for your BookShoppingServlet. Since your BookShoppingServlet does not have any logging or debugging facility, you will implement a filter that logs the calling sequence between the browser and the BookShoppingServlet. The filter for the BookShoppingServlet intercepts the request and response of the BookShoppingServlet and logs the call by printing it to the standard output (stdout). |