This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
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: 13027
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.
Don't get me started about those stupid light bulbs.
subject: Question
It's not a secret anymore!