servlet lifecycle methods

Hello everybody,Can i write destroy() inside init() method?If i write wheather servlet is loaded into memory or not?thanks in advance,
[162 byte] By [anilmekala.reddya] at [2007-11-27 2:09:19]
# 1

I'm not sure I really understand the approach you're taking

with the destroy() method here, normally a servlet is initialised by init()method, and the actual task is done in service() method which is called only when a request is made.

I don't know what can we do with a servlet that is destroyed in it's initialization itself.

Regards,

BalajiGaneshReddya at 2007-7-12 1:59:34 > top of Java-index,Java Essentials,Java Programming...