aspose file tools*
The moose likes Servlets and the fly likes what are the return values of init method in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "what are the return values of init method in servlets" Watch "what are the return values of init method in servlets" New topic
Author

what are the return values of init method in servlets

Sonu Kaur
Greenhorn

Joined: Sep 30, 2004
Posts: 9
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

Joined: Jun 17, 2003
Posts: 81
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException

Return Type = VOID
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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

Joined: Sep 30, 2004
Posts: 9
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: what are the return values of init method in servlets