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 is glasgow?

1000


How a component can be placed on Windows?

2791


How primary key is implemented in Oracle?

2384


What is a clone?

1007


What is the difference between the font and fontmetrics classes?

1086


What classes of exceptions may be caught by a catch clause?

980


What you mean by COM and DCOM?

1020


What is difference between object state and behavior?

1042


To identify IDL language what mapping mechanism is used?

3892


Explain the different types of memory used by jvm?

1072


Define the remote object implementation?

2416


Can I have an action without a form?

1053


What is ioc concept?

1158


Explain about RMI Architecture?

1030


What is a sessionfactory? Is it a thread-safe object?

1163