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 are the type of protocols used in httpservlet?
What is the directory structure of a war file?
What is servlet and how it works?
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()?
Why do you use session tracking in httpservlet?
What is Request Dispatcher?
What is servlet invoker?
Differentiate between get and post?
How to get the IP address of client in servlet?
What is meant by servlet? What are the parameters of the service method?
What are the disadvantages of storing session state in cookies?
Write the code to get the server information in servlet.
Why servlet is faster than jsp?
Define the servlet mapping.
Explain the features are in servlet 3?