How to handle the debug errors in servlets?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we refresh servlet in client and server side automatically?

780


What do you mean by cgi in servlet?

804


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

822


What is the difference between Difference between doGet() and doPost()?

961


What is the purpose of dispatcherservlet properties?

709


What is the major difference between servlet and applet?

745


What are the life cycle methods of the servlet?

807


What’s the difference between sendredirect and forward methods

813


Define servlet mapping?

892


What is http servlet?

783


Why is http protocol called as a stateless protocol?

729


What is the difference between a generic servlet and http servlet?

709


how many jsp scripting elements are there and what are those?

785


What are important features of Servlet 3?

800


What are all the advantages of servlet over cgi?

792