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
Can we refresh servlet in client and server side automatically?
What are the key methods that are involved in processing of http servlets?
How can an existing session be invalidated?
Which event is fired at the time of project deployment and undeployment?
What is pure servlet?
explain the advantages of servlet life cycle?
What is a servlet?
What is the dispatcher servlet?
Is servlet synchronized?
Whether we can get deadlock situation in servlets?
What is war file?
Why do we use sendredirect() method?
Is tomcat a servlet container?
Which http method is said to be non-idempotent and idempotent?
What is the difference between servlet and filter?