Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what are the return values of init method in servlets

 
Sonu Kaur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody help me ..please tell me what are the return values of init method in the servlet lifeycle?

which prevents it from accessing the service method?

I'm going for the scwcd exam. Please, if somebody can help me as soon as possible.

regards
[ November 09, 2004: Message edited by: Mark Spritzler ]
 
Anupreet Arora
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException

Return Type = VOID
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are studying for the exam, why don't you have a copy of the servlet JavaDocs and the API?
Bill
 
Sonu Kaur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends
Maybe I was not very clear with my question..my intention was not to ask about what is the return value of init method.
It's clear in the signature, void.

I was keen to know, what things in init method could prevent the container from servicing any request from the client
I could get a reason, if there is an exception raised into init, then there is not any possibility of going to the service method.
and one of my friends had appeared in scwcd recently. He was also not able to get what could be the other reason as he had to make two choices.

So I aplologize if my very basic questions caused inconvinience to some of you of course I'm not very experienced in this technology, but, yes I'm on the way
anyways thanks for your answers..
regards
[ November 09, 2004: Message edited by: Mark Spritzler ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaismeen, Please spell out all words. I have gone through your posts and added the missing vowels.

Don't worry, it is me, and the mood I am in, and not you.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic