Solved

Writing to server txt files without a server ap

Posted on 1997-03-27
1
169 Views
Last Modified: 2010-04-16
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
0
Comment
Question by:kskline
1 Comment
 
LVL 2

Accepted Solution

by:
igroove earned 20 total points
ID: 1219277
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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 52
Java: The Public Class Main 4 44
java example issue 5 42
Java syntax, or is it Selenium 6 37
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

680 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