If service method is used then doGet() and doPost() stand for what?

This question is related to Oracle Interview

Showing Answers 1 - 0 of 0 Answers

We use doGet() when you want to intercept on HTTP GET requests.The servlet doGet() is used to preprocess a request.Ex:doing some business stuff before displaying the JSP page, such as gathering data for display in a table.

We use doPost() when you want to intercept on HTTP POST requests.The servlet doPost() is used to postprocess a request.Ex:gathering data from a submitted HTML form and doing some business stuff with it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions