944,161 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 5206
  • JSP RSS
Sep 26th, 2007
0

Help needed in JSP project-Online Examination

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kedarkhedkar is offline Offline
5 posts
since Sep 2007
Sep 26th, 2007
0

Re: Help needed in JSP project-Online Examination

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
Reputation Points: 16
Solved Threads: 11
Junior Poster in Training
lookof2day is offline Offline
83 posts
since Aug 2007
Sep 28th, 2007
0

Re: Help needed in JSP project-Online Examination

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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Jsp and XML
Next Thread in JSP Forum Timeline: JSP using Oracle Database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC