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
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is the use of request dispatcher interface?
Write the code to get the server information in servlet.
What do you mean by deployment descriptor?
What are session variable in servlets?
How do I know if java is running on linux?
Why is Servlet so popular?
What are the benefits of using servlet over cgi?
What do you mean by url pattern in servlet?
How to upload a file to the server using servlet?
Is java servlet still used?
Explain load on start-up and its importance?
What is the use of servletconfig interface?
Why filter is used in servlet?