What are the difference between HttpServlet and
GenericServlets?
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 ? | 3 Yes | 6 No |
Post New Answer View All Answers
What are session variable in servlets?
Where do you define dispatcherservlet?
What are the differences between forward() method and sendredirect() methods?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What are the phases of the servlet life cycle?
How can we include static files in the jsp page?
What’s the difference between genericservlet and httpservlet?
Is tomcat a servlet container?
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
How to get the server information in a servlet?
Explain Action Servlet?
What is the difference between Difference between doGet() and doPost()?
Can servlet have a constructor ?
What is servlet in web technology?
What’s the difference between forward() and sendredirect() methods?