servlet execution

Hi! Please try to answer my question : if there are 3 methods in the servlet as service,doGet and doPost then which one gets executed first and does the request get passed to other method?

Message was edited by:

j_star

[238 byte] By [j_stara] at [2007-11-27 11:44:29]
# 1

I think first mehod will be called Service mehod.

http://www.chambal.net/documentation/chambal--introduction-to-servlets

JL.Nayaka at 2007-7-29 17:56:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Service method check the request type. If it is GET, then I call doGet() and if it is POST then I call doPost() method.

http://www.visualbuilder.com/jsp/webcomponent/pageorder/5/

Message was edited by:

JL.Nayak

JL.Nayaka at 2007-7-29 17:56:07 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...