why are using HttpServlet in realtime projects and why are
not using Genericservlet
Answer Posted / arun sharma
HttpServlet is Http Protocol Specific whereas Generic
servlet is protocol independent and as we know that on
world wide web only http protocol exists thats why most of
the servlets are developed using HttpServlet class. but id
we want proocol independent servlet in that case we develop
servlet using GenericServlet class.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What's the use of servletcontext?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
what is multiple server?
What is the
What are the different mode that servlets can be used?
How to notify an object in session when session is invalidated or timed-out?
Which is better jsp or servlet?
What is servlet container?
Explain Action Servlet?
What is the use of java servlet api?
Can you refresh servlet in client and server-side automatically?
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 are the two important api's in for servlets?
Write a command to get actual path of a servlet to the server?
Why servlet is mostly used?