Solved

Read/Write files

Posted on 2000-05-12
9
207 Views
Last Modified: 2010-04-01
Hi real-genius.

My question (problem): we need run read/write operations over local files from an applet. Our requirements:

  1.- The applet must run in NetS & IE
  2.- File we must read/write contains ascii code, and it`s in the same machine where applet runs.

We know the possibility to sign applets, but we prefer study other ways (if it`s possible).

Thank`s at all.
0
Comment
Question by:dmaguillo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 3

Expert Comment

by:ovidiucraciun
ID: 2804067
yes it is possible,
instead of signing the applet you edit a policy file that grant rights (read/write on the client machine) to your applet specifying the name of the applet and the URL to it.

you can use the policytool to create policy files
0
 
LVL 1

Author Comment

by:dmaguillo
ID: 2804093
ovidiucraciun, have any examples or web page where i could obtain more info?

0
 
LVL 1

Author Comment

by:dmaguillo
ID: 2804099
ovidiucraciun, have any examples or web page where i could obtain more info?

0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 1

Author Comment

by:dmaguillo
ID: 2804129
ovidiucraciun, have any examples or web page where i could obtain more info?

0
 
LVL 3

Expert Comment

by:ovidiucraciun
ID: 2804133
http://java.sun.com/docs/books/tutorial/security1.2/index.html
here you'll find all you need: signing or granting rights to applet by name

0
 
LVL 3

Accepted Solution

by:
ovidiucraciun earned 100 total points
ID: 2804137
more exactly go trough
http://java.sun.com/docs/books/tutorial/security1.2/tour1/index.html

and stay focused on "A CodeBase value indicates the code source location; you grant the permission(s) to code from that location. An empty CodeBase entry signifies "any code" -- it doesn't matter where the code originates"
0
 

Expert Comment

by:Ash_
ID: 2805415
hey man you need the Java2 plugin for that
0
 
LVL 1

Author Comment

by:dmaguillo
ID: 2912145
Comment accepted as answer
0
 
LVL 1

Author Comment

by:dmaguillo
ID: 2912146
My apologies to ovidiucraciun... So late (but so good :o)
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question