Answer Posted / abdul
I just wanted to update my answer:-
Methods in HttpServlet
Http methods which can be implemented by Service method are:
---------------------
doGet().
doPost()
doPut().
doTrace()
doDelete()
doHead()
doOptions()
* Note :doConnect() is not present in HttpServlet. The
developers of the API didn't feel the use of doConnect in
Servlet.
Other methods:
Service(HttpServletRequest,HttpServletResponse)
getLastModified(HttpServletRequest)
Service(ServletRequest,ServletResponse)
Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What if we pass negative value in load-on-startup?
Which event is fired at the time of session creation and destroy?
How to upload a file to the server using servlet?
How do you configure a centralized error handler in servlets?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
How the typical servlet code look like ?
What’s the difference between forward() and sendredirect() methods?
The code in a finally clause will never fail to execute, right?
What is a web application and what is it’s directory structure?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
How can we implement a jsp page?
What is servlet mapping?
What is java servlet session?
Which protocol will be used by browser and servlet to communicate