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
What is glasgow?
How a component can be placed on Windows?
How primary key is implemented in Oracle?
What is a clone?
What is the difference between the font and fontmetrics classes?
What classes of exceptions may be caught by a catch clause?
What you mean by COM and DCOM?
What is difference between object state and behavior?
To identify IDL language what mapping mechanism is used?
Explain the different types of memory used by jvm?
Define the remote object implementation?
Can I have an action without a form?
What is ioc concept?
Explain about RMI Architecture?
What is a sessionfactory? Is it a thread-safe object?