What is servlet?

Answer Posted / mirza

Servlet is a server side program which is written in java
langauge and it contains the bussiness logic funtion to
submit the appropriate response back to client.
We use servlet to develop the web component
which is deveploy by using web server like Apache.
It takes the HTTP request from client and it
generates the HTTP response back to client.
As per MVC design pattern it works like a
controller.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to upload a file to the server using servlet?

533


Explain the architechure of a servlet?

605


How are filters?

583


How can the session in servlet can be destroyed?

712


What is the purpose of requestdispatcher interface?

616






Which event is fired at the time of setting, getting or removing attribute from application scope?

615


What exactly are the functions of servlet?

601


What are the life cycle methods of a servlet?

593


How do servlets work?

536


Why do we have servlet wrapper classes?

580


What is difference between PrintWriter and ServletOutputStream?

771


Write a servlet to upload file on server.

599


What is called servlet container?

665


If some new data has entered the database, explain how can a servlet refresh automatically?

739


What is new in ServletRequest interface ? (Servlet 2.4)

577