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 is the process to implement doget and dopost methods?
What do you mean by web applications? Explain web application directory arrangement?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
Why is servlet used?
What's the difference between servlets and applets?
How do you define a servlet?
How do I use cookies to store session state on the client?
How is an application exception handling is done using a servlet?
What is servlet interface?
What is cookie in servlet?
How can the session in servlet be destroyed?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
How to handle exceptions thrown by application with another servlet?
request parameter how to find whether a parameter exists in the request object?
How httpservlet is different from the genericservlet?