How to handle the debug errors in servlets?
Answers were Sorted based on User's Feedback
Answer / pramod kumar
If you are using any tool debug the code using the tool's
debugger it will help you a lot
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sk
debigging the errors in servlets is very difficult.........
if we want to detect the errors in servlet we have to print
the object ......... for ex----
Connection con=DriverManager("url","uid",pwd");
System.out.println(con);
if it prints the object address the program is
connected to database otherwise not connected to database
| Is This Answer Correct ? | 0 Yes | 0 No |
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply..
What exception should be thrown when servlet is not properly initialized?
What's the architecture of a servlet package?
What happens, if server sends a cookie to a browser that doesn't supports cookies?
Name the webserver that is used to run Servlets?
What are the type of protocols used in httpservlet?
What is use of parseQueryString ?
Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?
Is Servlet Class Thread safe?????? How to make servlet Thread safe ???
Difference Between Web Server and Application server ??
when the several requests comes to server..how it manage the requests