• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to include timer in OnLine Examination  RSS feed

 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Please specify the Code for Question 3
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks--Shibu Mathew
 
Shibu Mathew
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now my problem is

1. How to save the Session details in a Database?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shibu,
You use JDBC to store data in the database.
 
pradeep jaladi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!