Solved

Open/write to server file?

Posted on 1997-03-26
1
180 Views
Last Modified: 2010-04-16
I saw an earlier question that asked whether one could create a server file and/or open for write. The answer (which I gave up some points for) did not answer the real question. Anyway, I would like to create and subsequently open for write a text file on the server from the Java client. I know how to open up a file for read, but am not sure I can write. I know I can do this with a CGI program, but am curious if I can accomplish this with Java. I am not yet familiar with the 1.1 additions, so am hoping this is possible.
0
Comment
Question by:richr
1 Comment
 
LVL 2

Accepted Solution

by:
igroove earned 50 total points
ID: 1219270
It is possible in 1.1 using the RMI (remote method invocation), or
servlets running in a server-side java environment such as Jeeves.  You should check out and download 1.1 from www.javasoft.com.  Right now, you could have an applet connect to a CGI or server daemon which does what you want...but if the server is running Jeeves, you could use total JAVA to accomplish what you ask.

A servlet is basically a server-side on demand applet :)

Jeeves is a Java based HTTP daemon.

RMI allows remote applets to call methods on other java applets across network connections !!! Pretty phat, if you ask me.

Note:  applet security prevents the applets from writing files, and connecting sockets to machines other than the machine they were downloaded from.

See java security at JavaSoft...

Good luck.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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
Windows 10 IE Certificate Issue 10 51
MySqlDump not dumping triggers 1 43
How do I remove an object from a 3 40
Tagging and Merging on Branch 1 30
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

820 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