Help needed in JSP project-Online Examination

Reply

Join Date: Sep 2007
Posts: 5
Reputation: kedarkhedkar is an unknown quantity at this point 
Solved Threads: 0
kedarkhedkar kedarkhedkar is offline Offline
Newbie Poster

Help needed in JSP project-Online Examination

 
0
  #1
Sep 26th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 81
Reputation: lookof2day is an unknown quantity at this point 
Solved Threads: 10
lookof2day lookof2day is offline Offline
Junior Poster in Training

Re: Help needed in JSP project-Online Examination

 
0
  #2
Sep 26th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,623
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Help needed in JSP project-Online Examination

 
0
  #3
Sep 28th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC