wood burning stoves 2.0*
The moose likes Servlets and the fly likes Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question" Watch "Question" New topic
Author

Question

deepak kukreja
Ranch Hand

Joined: Aug 13, 2001
Posts: 54
What happens if there is some error in the init() method.


Deepak<br />SCJP
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
If there is an exception thrown in init, your browser will get an error on trying to reach the URL. To be really graceful about it, you can throw an UnavailableException from the init so the container will be able to log the reason.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question