Writing to server txt files without a server ap

Can an applet write to a server text file without using sockets to connect to a server side application? ie: i want to open and write to a remote file without having to put any apps onto the server
ksklineAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
igrooveConnect With a Mentor Commented:
The answer at this time, because of applet security restrictions, is a big fat NO. Anyhow, how would you access the server without using sockets? And the applets (at this time) can only access sockets BACK to the host machine they were loaded from. AND applets cannot write files.

In the future, security on java applets may be relaxed. If you use a standalone Java Application, there basically is no security restriction - you can connect to any machine you wish, and write files on the local file system.

There is a small but risky workaround...you'd have to embed an FTP client session in your applet that would log in FTP to the server using your username and ID to upload text to your directories. Anonymous FTP would only work if write perms were granted to anonymous users.  And I don't know if you're wanting people to be downloading classes with your username and ID embedded into them!

As for doing what you want without putting apps on the server...
you kinda have to put them on there to do what you wish.

Sorry I couldn't give you a workaround other than the above mentioned one...the restrictions are embedded into Java itself :(

- igroove.

0
All Courses

From novice to tech pro — start learning today.