File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


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

Joined: Mar 22, 2000
Posts: 13035
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.
I agree. Here's the link:
subject: Question
It's not a secret anymore!