Hi, I need help in ctahing the exceptions thrown by a servlet that is used in the following manner:
<img src=/webapp//abhijit/servlet/<ServletName>?&<params/> The problem is that the servlet specified is a third party servlet, hence the exceptions thrown by the servlet are not logged in the log file. I need to catch the exception thrown by the servlet or log it using Log4j logging. Can anybody help me in this regard. Any help will be appreciated.
Have you tried the example presented from David O'Meara. You don't need that servlets source code to at least try what he suggested, since, in order for it to be a servlet at all, it must implement the Servlet interface. Wrap those methods in a class of your own calling the other servlet as a normal class and redirect the server configuartion to point to your new servlet instead of the original.