Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Writing to server txt files without a server ap

Posted on 1997-03-27
1
168 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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
oracle 11g 23 106
Windows 10 IE Certificate Issue 10 51
Html Table Looping (part 2) 5 27
Java program running SQL query 5 37
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

790 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