Logging and Debugging
Apress eBooks · 2007
For a web application of any size, there tends to be a large number of participating classes, views, and controllers, all performing their individual little bits. Using Struts is no different. A typical request in Struts involves the ActionServlet, your chosen controller such as RequestProcessor, your Action class, maybe an ActionForm, and of course your JSP view. If any of these individual components has an error, especially a spurious one such as NullPointerException, then narrowing down where this error occurs can be a nightmare. To solve this, you need to have flexible mechanisms for debugging your application and monitoring its behavior.