aspose file tools*
The moose likes Servlets and the fly likes Sessions with database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sessions with database" Watch "Sessions with database" New topic
Author

Sessions with database

anand chawla
Ranch Hand

Joined: Oct 19, 2000
Posts: 91
HI Guys
just caught with one problem
can anyone tell me how do i solve this problem of mine.
I am devloping a program for online exams.The two problems i m facing is that if one person is answering the first question the other one on the network is getting the second one...naturally because of thread concept...but can anyone tell me how do i solve this problem....someone had told me to use implement SingleThreadModel which i did and to some extent it worked...but my requirement is to create a session...and i have very little doubt as to how to go about it....even if i create session what are the values i attach to it.....
pls help
james_deshpande
Greenhorn

Joined: Feb 13, 2001
Posts: 23
Bhidu,
pass username in session.
Generate q papers saperately for each session into an array or table.Then use that q paper and the user name to fetch next question.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sessions with database