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
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What is difference between object state and behavior?
Which javutil classes and interfaces support event handling?
Difference between DurableSubscription and non- DurableSubscription?
What is the difference between a static and a non-static inner class?
What value does read() return when it has reached the end of a file?
How would you detect a keypress in a jcombobox?
whats is mean by connectionpooling
What restrictions are placed on the location of a package statement within a source code file?
What are the services in RMI ?
What are the diff types of exception?
How is a java object message delivered to a non-java client?
Which are the different segments of memory?
which type of objects reference will be given to client?
What do you know about seam?