3.8 Servlet Debugging
1. Use print statements.
2. Use an integrated debugger in your IDE.
3. Use the log file.
4. Use Apache Log4J.
5. Write separate classes.
6. Plan ahead for missing or malformed data.
7. Look at the HTML source.
8. Look at the request data separately.
9. Look at the response data separately.
10. Stop and restart the server.