Difference between httpservlet and generic servlets?
Answer / Vibha Yadav
The main difference between HTTPServlet and GenericServlet lies in their implementation details: HTTPServlet overrides methods like doGet() and doPost(), while GenericServlet overrides service() method. Additionally, HTTPServlet is designed to handle HTTP-specific features, such as cookies and headers, whereas GenericServlet offers a more general approach that can be used with various protocols.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can a servlet refresh automatically if some new data has entered the database?
3 Answers Citi Bank, CitiGroup, IBM, Satyam,
What do you mean by default initialization in java servlet?
what is the difference between doGet() and doPost()?
what are binding listners?
What is a servlet context object?
What is servlet container. how it works?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
when the jsp page is translated to servlet?
Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.
How do I know if java is running on linux?
How we can get ip address of client in servlet?
Elucidate servlet attributes and its scope?