Explain the methods in Generic and HTTP Servlets?
Answers were Sorted based on User's Feedback
Answer / guest
Generic servlets has service() method to handle requests
HttpServlet has doGet(),doPost(),doHead() mehtods
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / chaitu
All the methods in Generic servlets are abstract methods.
Even though HTTP Servlet is an abstract there are no
abstract methods
| Is This Answer Correct ? | 2 Yes | 0 No |
When should you prefer to use doget() over dopost()?
What are the methods in HttpServlet?
what is the advantage of using Servlets over CGI programming?
Servlet Chaining? How do you do the Filtering in Servlets?
Explain url encoding?
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()?
When jsessionid is created?
What is the purpose of dispatcherservlet properties?
What is httpservlet and how it is different from genericservlet?
How can an existing session be invalidated?
Is it possible to have a constructor inside the servlet?
What is servlet looping or chaining?