Solved

Open/write to server file?

Posted on 1997-03-26
1
169 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now