what is servlet and what you get when we use servlets?

Answer Posted / nag sekhar(mca)

Servlet is an object which provides the implementation of
servlet interface directly or indirectly.
For example servlet program can be written by implementing
the servlet interface or by using HttpServlet class like
"public class ServletExample extends HttpServlet". The class
HttpServlet implements the Servlet interface which is
indirect implementation of Servlet.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we invoke another servlet in a different application?

957


What are the types of servlet?

927


What are some disadvantages of storing session state in cookies?

819


What are the types of an http request?

851


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 ?

854


Tell us something about servletcontext interface.

858


Which event is fired at the time of project deployment and undeployment?

1085


Can we fetch the attributes related to a servlet on a different servlet?

908


When jsessionid is created?

815


What is servlet and its advantages?

803


How to create war file?

838


How do you invoke a servelt?

866


What is the difference between encodeRedirectUrl and encodeURL?

866


How many objects of a servlet is created?

1031


How can we refresh automatically when new data has entered the database?

872