Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

What are the difference between RMI and Servlets?

402


Are Servlets Thread Safe? How to achieve thread safety in servlets?

224


What is the difference between sendredirect() and forward() in a servlet?

186


What's the use of servletcontext?

198


What is difference between get and post method?

213






Should I override the service() method?

230


What is the difference between genericservlet and httpservlet

220


How servlet is created?

183


Can we get PrintWriter and ServletOutputStream both in a servlet?

232


What do you mean by singlethreadmodel interface?

213


What is servlet configuration?

177


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

226


Which application server is best for java?

199


What is servlet api used for conneting database?

268


How can you start a jta transaction from a servlet deployed on jboss?

243