How to handle the debug errors in servlets?

Answers were Sorted based on User's Feedback



How to handle the debug errors in servlets?..

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

How to handle the debug errors in servlets?..

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

Post New Answer

More Servlets Interview Questions

Difference between GET and POST?

0 Answers  


What are different Authentication options available in Servlets.

0 Answers  


What is servlet in tomcat?

0 Answers  


What is the need of servlet filters?

0 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  






How to create war file?

0 Answers  


Is servlet synchronized?

0 Answers  


Why session tracking is needed?

0 Answers  


What is servlet looping or chaining?

0 Answers  


what is the difference between do get/dopost

9 Answers  


Hi............ When i am started the tomcat server it started. but it not load the jar files wht we deploving file.suppose we load the wapp folder in webapps. At running time it show the below error in tomcat server INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\web apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class How to slove this problem in my system. plz give answer for this problem.

5 Answers  


How servlet is created?

0 Answers  


Categories