• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to include timer in OnLine Examination

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now i doing an OnLineExamination project. My problem is that

1. how to handle multiple users at a single time?
2. how to handle two different persons with same login name and password in the same time?
3. A page expiration takes place and a new place dispalyed after the time expiration without user request

please help me immediately.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. how to handle multiple users at a single time?
Learn about JSP Sessions. It's pretty much handled for you.

2. how to handle two different persons with same login name and password in the same time?
Same answer as with question #1. (Two people shouldn't have the same login and password, but I guess that's beside the point.)

3. A page expiration takes place and a new place dispalyed after the time expiration without user request
If you want this to happen without user input, it will require either Javascript or a META REFRESH tag.

If you're only allowing so much time for the test, you will want to store the user's start time (the session object is one good place to store this) and compare that with the current server time on each post.
[ February 16, 2005: Message edited by: Ben Souther ]
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please specify the Code for Question 3
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.htmlhelp.com/">

Will cause the page to refresh in 10 seconds.
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks--Shibu Mathew
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now my problem is

1. How to save the Session details in a Database?
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shibu,
You use JDBC to store data in the database.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Preventing 2 users with same password & user name .
solution 1:

Write one java file which uses concept of synchronization and update the database field "user_connect" to yes. then the 2 user can't connect to the database.

Solution 2:

Maintain the user names in Collection packages (vector, arraylist) and check it out .if user exists or not . this is solution of user maximum upto 100. this is slow process
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic