i have to create an application with session.during that
session a timer will be started & show the time in second
upto the session expired.So that i can know how many time i
in that session.
Hint:-i m hinted that it will coded with javascript
Answers were Sorted based on User's Feedback
Answer / ananth
SetInterval() method in javascritps we can monitor the
session in the specific interval and initial the session
invalidate methos if needed to be session expires.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / m
The login details must be saved into the table. Using
javascript u can fetch the data and compare with the system
time. Also you can manage to check session is empty or not,
if its so, means user has logout. Till that time you can
know that how much time user had been logged in.
| Is This Answer Correct ? | 1 Yes | 4 No |
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
Is java a web technology?
What is difference between javac and java?
What is java transaction api (jta)?
Why java is oop language?
What is build file?
What are the most important topics in java?
What is j2ee api?
Where javac is located?
Is java is a technology?
What is jlayeredpane java?
how to run servlet program between two computer through internet ?