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
Can I import same package/class twice? Will the jvm load the package twice at runtime?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Name the class that is used to bind the server object with RMI Registry?
What is a policy?
What are the difference between RMI and CORBA?
What is TL and its use?
What are the different approaches to represent an inheritance hierarchy?
difference between ejb,struts,hibernate,spring and jsp
Explain the difference between object state and behavior?
To what value is a variable of the string type automatically initialized?
Define aop(assepct oriented programing)?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
What is the difference between the font and fontmetrics classes?
Why won’t the jvm terminate when I close all the application windows?