aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 12806
    
    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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question