Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1164


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1142


Is servlet synchronized?

1135


List some life cycle methods of a servlet.

1110


Tell us something about servletconfig interface.

1053


How do you load an image in a Servlet?

1234


What are all the ways for session tracking?

1226


How is a servlet implemented in code?

1123


Explain the lifecycle of a servlet?

1028


What is the difference between servlet and jsp?

1175


Is java servlet still used?

1087


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1089


Explain the methods of request dispatcher in servlet?

1101


What is new in ServletRequest interface ? (Servlet 2.4)

1062


What do you mean by interservlet communication?

1121