What is Generic Servlet and how it is different from Http
Servlet?
Answer Posted / niranjanravi
The diff is that inGeneracicServlet we had to implement the
service()method the GenericServlets service() method is
declared as abstract.But the Generic Servlet is not
implementing keeping the HttpSErvers in mind. Methods we
have in this class are
init()
log()
service()
While implementing the HTTP Servlet the service() method is
already implemented .service()method of HTTP sevlet is
declared as protected.the HTTPServlet is implementing
keeping the HttpSErvers in mind. Methods we have in this
class are
doGet(),doDelete(),doPost()
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What is servlet configuration?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
How can the referrer and the target urls be used in servlet?
What is preinitialization of a servlet?
What are different ways for authentication of servlet?
What are the mechanisms used by a servlet container for maintaining session information?
What do you mean by web applications?
What is SingleThreadModel interface?
Define the life cycle of a servlets.
What is war file?
How to get the server information in a servlet?
Why the container loads server at the application startup and how?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Difference between GET and POST?