What is Generic Servlet and how it is different from Http
Servlet?

Answer Posted / niranjanravi

The diff is that inGeneracicServlet we had to implement the
service()method the GenericServlets service() method is
declared as abstract.But the Generic Servlet is not
implementing keeping the HttpSErvers in mind. Methods we
have in this class are
init()
log()
service()
While implementing the HTTP Servlet the service() method is
already implemented .service()method of HTTP sevlet is
declared as protected.the HTTPServlet is implementing
keeping the HttpSErvers in mind. Methods we have in this
class are
doGet(),doDelete(),doPost()

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you invoke a servelt?

822


How do you create a cookie using servlet?

821


What are the drawbacks of cgi?

728


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1927


What is the process to implement doget and dopost methods?

716


What is servlet and its life cycle?

816


Can you explain in detail 'javax.servlet' package?

750


Why do we need a constructor in a servlet if we use the init method?

734


Can we refresh servlet in client and server side automatically?

779


Why the container loads server at the application startup and how?

781


What’s the difference between genericservlet and httpservlet?

729


What are the differences between servlet context vs servlet config?

806


How to generate the server side programming and the advantages of it over the other languages?

767


What is servlet and its types?

769


What are the different mode that servlets can be used?

756