| | |
Help needed in JSP project-Online Examination
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 5
Reputation:
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: 81
Reputation:
Solved Threads: 10
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.
![]() |
Similar Threads
- jsp code for online examination project (JSP)
- i need source code for online examination application in jsp (JSP)
- help::Online examination (Database Design)
- online examination (Java)
- Online Examination (Visual Basic 4 / 5 / 6)
- 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
| Thread Tools | Search this Thread |
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






