kind of newbie question in java applete and sites

A

ali

well i see you are disscussing very advance things in java here so i
feel strange to ask such a simple question here

but hope i will get un answer

ok here it is my question

let say i am running my java applet on a site
www.yourname.com/mypage.html

ok and i have a file whichs path is www.tourname.com/info.txt

so can i modify this file

if (no) { why; }

if (yes ){ how; && why; }


hope i will get my help here and thanks in advance
 
R

Ross Bamford

well i see you are disscussing very advance things in java here so i
feel strange to ask such a simple question here

but hope i will get un answer

ok here it is my question

let say i am running my java applet on a site
www.yourname.com/mypage.html

ok and i have a file whichs path is www.tourname.com/info.txt

so can i modify this file

if (no) { why; }

if (yes ){ how; && why; }


hope i will get my help here and thanks in advance

short answer: no. The applet is running on the client computer.

Long answer: Of course you could setup your server so that one can
modify that url, and then do it that way in your applet using a
URLConnection / Stream.

Applets are restricted in their network access but IIRC they are allowed
connections to their serving server, so as long as the applet comes from
the same server...

This can also be changed I think but can't remember how ...

So yes, but with configuration outside Java too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top