Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc and applet

 
saju p
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
We are developing a software in Java to conduct an online test.We have used three files ,the first is the "question_bank" containing 1500 questions having 500 questions each in C,Computer fundamentals and analytical reasoning .The second file is "question_paper"that is created at runtime by selecting 90 questions(30 each)from the first file ,the third file keeps records of all candidates who have attennded the online exam.
Ourproblem is that we are unable to read or save record to a local file using the applet.In order to do that we follow the following three approaches
Approach 1
We made changes in the default polic file ie: java.policy
Approach 2
We made a new security policy and call the applet with the new security policy in effect.
Approach 3
We specified a number of URLs in policy .URL.n properties in the security proiperty file(java.security) to get all the designated policy files created.
None of the above approaches have worked .Can anybody help us?
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here are possible solutions
1-Try Servlets to do the same task
2-Make ur applet signed.
3-store the user information or records on server rather on client machine.
tell if problem persists.
 
David Freels
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using the Java Plug-In changing the lib/security/java.policy file will allow the applet to write to disk. Another solution if you must use an applet as the front end, would be to have the applet communicate back to a servlet on its host server and have the servlet save the information. This also allows the user to obtain their results from anywhere.
Hope this helps.
David
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saju P
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, which you agreed to when you registered, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. A single charaacter for a last name is not acceptable. Please choose a new name which meets the requirements.
Thanks.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic