What is servlet?

Answer Posted / sudarsan

Servlet is an Interface.
It is a server side component.
servlet takes the request from the container and process
the request and send the response to the container.
so container manages the servlet life cycle.
servlet is a controller.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

614


What are the phases of the servlet life cycle?

605


What is webservlet?

531


Which is better jsp or servlet?

553


What are the key methods that are involved in processing of http servlets?

624






What if we pass negative value in load-on-startup?

798


Whether thread can be used in servlets?

728


what is servlet chaining?

623


Explain jsessionid?

617


What are the servlet events?

590


What are sessions in servlets?

574


How do I support both get and post from the same servlet?

696


How to get the path of servlet in the server?

534


What is called servlet mapping?

554


What is difference between cookies and httpsession?

544