Stage | Purpose | When it happens | Can 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