You can refer "Java servlet programming"by jason hunter(OReilly).There are
some good examples in ch.3
Rgds
Anurag
-----Original Message-----
From: Ramarao Yadlapalli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 9:07 AM
To: [EMAIL PROTECTED]
Subject: Re: NEED HELP!!!
This is simple. Have a static int variable declared in the servlet class
scope, and increment that by one in the service()/doGet()/doPost()
(whichever you may be using) method. For each user/visitor, a new
service()/doGet()/doPost) is initiated and so you will have your static
variable indicating the number of times the service method was invoked. This
is same as the number of visitors.
-----Original Message-----
From: john swee [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 8:05 AM
To: [EMAIL PROTECTED]
Subject: NEED HELP!!!
Hi!
Who can send me a Servlet programm for counting
visistors.
Thank you very much!
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
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
___________________________________________________________________________
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
___________________________________________________________________________
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