Extending Your BookShoppingServlet with a Simple Logging Filter

Now 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).

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.