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 are JTA/JTS and how they used by client?
What are the different types of exception?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Why is string immutable in java?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Describe, in general, how java's garbage collector works?
what is a portable component?
What is chat area? Explain.
Is jvm a overhead?
Java is fully object oriented languages or not?
Do I have to use jsps with my application?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What are the steps to write p-to-p model application?
Can I use javascript to submit a form?
What is the relationship between local interfaces and container-managed relationships?