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 a policy?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Are enterprise beans allowed to use thread.sleep()?
Describe responsibilities of Activator?
What value does read() return when it has reached the end of a file?
Is the infobus client side only?
How are the elements of a cardlayout organized?
How is a java object message delivered to a non-java client?
What is jboss?
What are the types of scaling?
What are the call back methods in entity bean?
Explain phantom read?
Can I run seam with jdk 1.4 and earlier?
What are local interfaces? Describe.
What is synchronization and why is it important?