Answer Posted / prince singh
Guys 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)
This services method internaly call 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
What is the difference between servlet and filter?
What is session tracking?
What are the steps involved in placing a servlet within a package?
Write a program to show the functionality of doget and dopost method?
Why do we have servlet filters?
How do you create a cookie using servlet?
Can we override destroy method in servlet?
How would you create deadlock on your servlet?
Explain the difference between jsp and servlet?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are different methods of session management in servlets?
What are the different methods involved in the process of session management in servlets?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What do you understand by mime type?
What is servlet lazy loading?