What are different types of Servlets?

Answer Posted / ram

Servlets are of two types.

1) protocol independent servlet.
2) protocol dependent servlet.


Generic servlet is protocol independent servlet. It supports for HTTP, FTP and SMTP protocols.

HTTPServlet is protocol dependent servlet. So it support for only HTTp protocols only thats why it is dependent....

Is This Answer Correct ?    27 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe some assignments that are executed by servlet container?

779


What mechanisms are used by a Servlet Container to maintain session information?

883


What are life cycle methods of a servlet?

777


How do servlets work?

756


When a servlet accepts a call from a client, it receives two objects. What are they?

975


Is servlet a server side scripting language?

801


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3107


What is servlet looping or chaining?

893


What exactly is a servlet?

702


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2333


What are the different ways we can maintain state between requests?

768


What is the dispatcher servlet?

719


What are the difference between RMI and Servlets?

1232


Whether thread can be used in servlets?

934


How do I know if java is running on linux?

783