why are using HttpServlet in realtime projects and why are
not using Genericservlet
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prakash
Generic servlet is a abstract class which is not
implementing service() method,to serve the client requests
service method has to execute. and also generic servlet is
containing all general statements,and methods which are
changing by protocol wise.
But HttpServlet is a Http protocol specific class,it is also
one abstract class,eventhough all methods got implemented it
is qualified as abstract class to restrict the creation of
objects. Httpservlt class is implementing service() method
to serve the client requests.
so we are using HttpServlet in realtime projects.
| Is This Answer Correct ? | 8 Yes | 1 No |
What is war file?
What do you mean by deployment descriptor?
Can we override servlet service method?
Explain the servlet filter.
Is JSP Thread Safe ???? How To make JSP thrad safe ?????
How is a servlet implemented in code?
In jsp custom tags from child tags to how many levels of parent tags you can acess
what is EJB and Java servlet
Which are the different ways you can communicate between servlets?
What are the difference between RMI and Servlets?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What do you mean by filter in servlet?