Saturday, March 24, 2012

Servlet Lifecycle

StagePurposeWhen it happensCan be Overridden
init() Initialize servlet before client request After the servlet instance is created Possibly, when you have an initialization code
service() determine the HTTP method (Get/post) When the client's request comes in No, unlikely
doget() dopost Initialize servlet before client request Invoked by service() whether the method is post or get Always. this where the programmer's work is suppose to be in

No comments:

Post a Comment