The Artima Developer Community
Sponsored Link

Java Answers Forum
write to a file in applet

4 replies on 1 page. Most recent reply: Oct 1, 2004 12:30 AM by KevinT

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
KevinT

Posts: 24
Nickname: metzedler
Registered: Jun, 2003

write to a file in applet Posted: Sep 23, 2004 11:40 PM
Reply to this message Reply
Advertisement
Hi,

I would like to create an applet which can raed and write file to get data.
But as the security rule this is not allowed unless we uses signed applet or something like that.

But here I don't want to access or write things on clients side, I just want to get data from the local server side.

So is there any simple way to overcome this simple requirement (write data in the local server)

Many thanks


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: write to a file in applet Posted: Sep 28, 2004 3:43 PM
Reply to this message Reply
This topic has been addressed...
Check out the response involving passing
info. from an Applet to a Servlet which
then has access to the File System...

Its under a similar topic...

KevinT

Posts: 24
Nickname: metzedler
Registered: Jun, 2003

Re: write to a file in applet Posted: Sep 28, 2004 10:47 PM
Reply to this message Reply
Can you be more specific ?
I got no idea on that!

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: write to a file in applet Posted: Sep 29, 2004 1:58 PM
Reply to this message Reply
Wha's happenin' KevinT:

Check out the posting:

"How i put an applet on the web, which is communicate with a database"

posted by Periklis. ricky had a great response with
example code. Only difference is instead of connecting
to a database, you'll open a FileStream with write
capabilities. Your applet connects to a servlet which
then writes stuff to the file.

Your best bet is to go through the code that ricky
posted in order to get a better understanding.

I hope this helps...

Good luck...

Spike

KevinT

Posts: 24
Nickname: metzedler
Registered: Jun, 2003

Re: write to a file in applet Posted: Oct 1, 2004 12:30 AM
Reply to this message Reply
Thanks for that Kondwani! I'll try.

Flat View: This topic has 4 replies on 1 page
Topic: Servlet  Does have Comstructor ? Previous Topic   Next Topic Topic: How one applet can see database?( the applet and databaseis on a webserver)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use