Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I wantr to know, How many number of users logged in to
website? can any one answer

Answer Posted / raju

we need to write a servlet class, that is login servlet class. Whenever user going to login to the application ,server has to create login servelt object. so every time service method got executed for every user login. so write a private static int count variable as part of login servlet class and increment the counter value in service() method and store the counter value into application scope.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are JTA/JTS and how they used by client?

2271


What are the different types of exception?

1081


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1199


Why is string immutable in java?

1144


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1086


Describe, in general, how java's garbage collector works?

1084


what is a portable component?

2073


What is chat area? Explain.

1070


Is jvm a overhead?

1165


Java is fully object oriented languages or not?

1074


Do I have to use jsps with my application?

1076


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3061


What are the steps to write p-to-p model application?

2537


Can I use javascript to submit a form?

1203


What is the relationship between local interfaces and container-managed relationships?

1188