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 the difference between the session.get() method and the session.load() method?
What method is invoked to cause an object to begin executing as a separate thread?
What are externizable interface?
What is TL and its use?
Is jvm a overhead?
the same information whether it will connect to the database or it will be used previous information?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Which containers use a border layout as their default layout?
how do you Handle Front End Application data against DB with example?
Brief description about local interfaces?
Why are my checkboxes not being set from on to off?
how i secure my site with the https protocol.what are the steps?
How can I scroll through list of pages like the search results in google?
If your ui seems to freeze periodically, what might be a likely reason?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?