This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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?
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
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.