File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 13, 2001
Feb 24, 2004 04:23:00
What happens if there is some error in the init() method.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Feb 24, 2004 07:28:00
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
from the init so the container will be able to log the reason.
I agree. Here's the link:
what happens if i call destroy() method in init() or service() method ?
Call destroy() inside init()
Destroy Method in servlet constructor
Question related to Servlet Life cycle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015