• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jdbc and applet

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic