Hi kerem,
For starters : doget, dopost are specific to HTTPServlet class.
You would use doservice if your servlet uses the generic servlet class.
Init and Destroy methods are invoked (as far as i know) when the servlet is
loaded into the server memory
and offloaded from the server's memory.
for eg. during init, your servlet could set up all the database connections that
it needs and during destroy
make sure that all the db connections are closed. The reason behind this being,
servlets are loaded into server
memory once when the server starts up and is never unloaded until the server is
shutdown; unlike a CGI program
where the cgi program is loaded when invoked and is unloaded when it has
finished processing the request.
hth
rajesh
>hi there,
>i will be working with servlet for at least 2 weeks from now but can anybody
>tell me.
>What axcatly init destroy methods do and what is the difference between
>dogoet, do post with service.
>and can you send me an URL or example proram for init and destroy
>thanx
>note:for example when a member is logged in and then suts the window down he
>still remains logged in am i gonna use destroy for destroying the logged
>ones.
>and can you suggest me a way to handle the logging and leaving
>like in databse
>
>kerem
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html