What are the methods in HttpServlet?

Answer Posted / ashok kumar biswal

Mates,there are several methods present in HttpServlet
1.void doGet(),
2.void doPost(),
3.void doDelete(),
4.void doHead(),
5.void doOptions(),
6.void doTrace(),
7.void doPut(),
8.long getLastModified(),
9.public service(ServletRequest request,ServletResponse)

protected service method calls to the public service method.
10.protected service(HttpServletRequest request,HttpServletResponse)

protected service method calls to the doGet or doPost method according to the users requirement.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is URL Encoding?

627


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

2920


What are the different ways we can maintain state between requests?

580


What is the use of httpservletresponsewrapper?

538


List out the difference between ServletConfig and ServletContext?

609






What is servlet container?

667


What’s the use of the servlet wrapper classes??

644


What are the jobs performed by servlets?

585


What is the importance of init() method in Servlet ?

594


What is the use of welcome-file-list?

576


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

614


How would you create deadlock on your servlet?

624


What is called servlet mapping?

560


Is servlet a server side scripting language?

555


Can we override servlet service method?

591