jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes jdbc and applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc and applet" Watch "jdbc and applet" New topic

jdbc and applet

saju p

Joined: Mar 07, 2001
Posts: 4
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

Joined: Jan 08, 2001
Posts: 122
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

Joined: Feb 01, 2001
Posts: 102
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.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
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.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: jdbc and applet
jQuery in Action, 3rd edition