•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,509 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,657 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2246 | Replies: 2
![]() |
| |
•
•
Join Date: Sep 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I am developing online examination in servlets/jsp.
the problem with I stucked with is how to show user a timer.
the jsp page which showing current question to user should show time remaining & that time should be continuously decreasing by 1 sec.
One approch is to use applet sychronized with session attribute storing current time.
But how to get value in applet from session attribute.
OR
is there a better way to show time in online environment.
Please guide me as soon as possible.
I am developing online examination in servlets/jsp.
the problem with I stucked with is how to show user a timer.
the jsp page which showing current question to user should show time remaining & that time should be continuously decreasing by 1 sec.
One approch is to use applet sychronized with session attribute storing current time.
But how to get value in applet from session attribute.
OR
is there a better way to show time in online environment.
Please guide me as soon as possible.
•
•
Join Date: Aug 2007
Posts: 74
Reputation:
Rep Power: 2
Solved Threads: 9
You can use JavaScript for displaying timer and there is no need for binding it with a session. Rather, as soon as the user will click start exam button and the jsp page with questions is diplayed, the timer will start executing. When the user ends the exam, the timer will stop and you can display the total time. In order to monitor the time taken by user in the exam, you can pass the start time and to a Servlet where you can check whether the user has exceeded the time. If user has exceeded the time, ask a servlet to end the exam. You can put the timer in a separate Jsp page and use <jsp:include> to include it with the Jsp with questions
You are assuming smooth execution. What happens if the browser is closed when taking the exam? What happens when the user refreshes the page? You need to maintain the user state as well as the time of the examination in the user session. Keep the involvement of Javascript in business logic to its minimum.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
accounting software selection bbc black friday broadcast business software core customers distance education education erp systems experiment fedora funds gift cards holiday holiday shopping india intel internet investments legacy linux media microsoft online online education online shopping pc portfolio practices programming project project management publishing retail retail stocks selection shopping software software selection stocks strayer study technology evaluation tips tutorials video web xbox 360 xbox live
- i need source code for online examination application in jsp (JSP)
- online examination (Java)
- jsp code for online examination project (JSP)
- Online Examination (Visual Basic 4 / 5 / 6)
- help::Online examination (Database Design)
- serious problem..in online examination ..plz solve that as soon as possible (JavaScript / DHTML / AJAX)
- I want to run my jsp page online on internet (Java)
- Deployment of JSP project (Linux Servers and Apache)
Other Threads in the JSP Forum
- Previous Thread: null check of resultset
- Next Thread: JSP using Oracle Database



Hybrid Mode