Class 2 |
Intermediate Java 30-IT-397 |
|
Debugging Servlets
-
Look at the HTML source. You can often find errors here.
-
Use the sendError() method of the HttpServletResponse to send the error
to the client.
-
Start the server from the command line, so you can directly see the statements
written to System.out.println or System.err.println.
-
Generate log entries via HttpServlet.log.
-
Use the GET method to trace the values passed to the server.
-
Stop and restart the server.
Using Form Data

Created by: Brandan Jones
December 20, 2001