how many visitors visit our website?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   anjaneya_tm
Posted On:   Friday, March 24, 2006 04:55 AM

how do i came to now that how many users visiter vist our site in servlet or jsp?

Re: how many visitors visit our website?

Posted By:   Anonymous  
Posted On:   Friday, March 24, 2006 05:10 AM

Hi,



You need to save the count in the database for the no. of visitors visting the website.



For this, you need to write a function in a Java class which can be called throgh the Home page of the website.



This Java function will get the current count from the database and increase it by one when it is called.



Everytime Home page is called, the count in the database will be incremented by 1.



Make sure that this function has to be called when the Home page is visited for the first time during that sessoin.This can be managed by checking the Session parameters.



Thnaks & Regards,

Ketan
About | Sitemap | Contact