Solved

Read/Write files

Posted on 2000-05-12
9
205 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
  • 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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…

821 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