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
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
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 ?
Is servlet synchronized?
List some life cycle methods of a servlet.
Tell us something about servletconfig interface.
How do you load an image in a Servlet?
What are all the ways for session tracking?
How is a servlet implemented in code?
Explain the lifecycle of a servlet?
What is the difference between servlet and jsp?
Is java servlet still used?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Explain the methods of request dispatcher in servlet?
What is new in ServletRequest interface ? (Servlet 2.4)
What do you mean by interservlet communication?