posted 9 years ago

Hi all,

Well can you tell me that in how many ways can we initialize the Servlet?

Thanks in advance.

Well can you tell me that in how many ways can we initialize the Servlet?

Thanks in advance.

posted 9 years ago

Your question is really too vague for an answer. What do you mean by it?

On one hand, there are two different methods you could override (technically, two overloads of the same method). So maybe the answer is two.

On the other hand, you can write virtually anything you want within those methods, so maybe the answer is an infinite number.

Perhaps you can clarify your question?

On one hand, there are two different methods you could override (technically, two overloads of the same method). So maybe the answer is two.

On the other hand, you can write virtually anything you want within those methods, so maybe the answer is an infinite number.

Perhaps you can clarify your question?

posted 9 years ago

Hi kayanaat,

If you asking this question in context with initializing servlet can be possible other than init() method, then

Check this link .. May this can help you.

Initialize servlet

Regards,

PP.

If you asking this question in context with initializing servlet can be possible other than init() method, then

Check this link .. May this can help you.

Initialize servlet

Regards,

PP.

kayanaat sidiqui

Ranch Hand

Posts: 122