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
What is the difference between context parameter and context attribute?
What is servlet api used for conneting database?
Write a program to show the functionality of doget and dopost method?
How can we include static files in the jsp page?
How do we go with database connection and log4j integration in servlet?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What are some disadvantages of storing session state in cookies?
What is life cycle of Servlet?
Why session tracking is needed?
What is pure servlet?
Explain the servlet context.
explain the advantages of servlet life cycle?
What if you need to span your transaction across multiple servlet invocations?
How do you get the ip address of the client in servlet?
What is servlet in web technology?