Solved

Read/Write files

Posted on 2000-05-12
9
201 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
 
LVL 1

Author Comment

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

0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now