Connecting Tech Pros Worldwide Help | Site Map

Save in Java...???

  #1  
Old June 21st, 2007, 07:15 AM
Robert Bralic
Guest
 
Posts: n/a
If I make a applet from Java program is it possible
that this applet writes something on disk from browser...
I have a application with graphics and I want to make,
she as applet but I don't know how to save data...??

Thanks in advance, Robert..!!
robert.bralic@si.t-com.hr


  #2  
Old June 21st, 2007, 09:15 AM
Andrew Thompson
Guest
 
Posts: n/a

re: Save in Java...???


Robert Bralic wrote:
Quote:
>If I make a applet from Java program is it possible
>that this applet writes something on disk from browser...
Yes, it can. But the applet needs to be trusted.
I also hear that there were problems with IE's latest
changes that would allow writing to some directories,
but not others - at the moment, the details of that are
unclear to me.

Also, to be trusted, either ..
1) the applet needs to be signed by the deployer, and
'trusted' by the user (they will get a dialog asking to
trust it or reject it..), but a code signature that works
in Sun Java, will not be recognised by the obsolete
MSVM.
2) Has to have its codebase added to a policy file hidden
inside the JRE - which is not very practical for applets,
usually.

The third option is to launch the applet using web start*,
spceifyinh a 1.2+ JRE (which should recognise the
standard code signing) and either sign it as mentioned
above, or use methods of the JNLP API to access the
files** (which does not require signed code).

e.g.'s
* <http://www.physci.org/jws/#jtest>
** <http://www.physci.org/jws/#fs>
Quote:
>I have a application with graphics and I want to make,
>she as applet but I don't know how to save data...??
>
>Thanks in advance, Robert..!!
Note also that one character of '?' and '!' marks
is enough.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200706/1

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating the Web in Java peridian answers 3 December 11th, 2007 05:00 PM
integers and arrays in Java - how? Robert Baer answers 36 April 10th, 2006 12:25 AM
Does this class will make a pointer in c++ work like the reference in java Zheng Da answers 3 July 23rd, 2005 05:50 AM
Save in Java Robert Bralic answers 3 July 18th, 2005 12:52 AM