Solved

Open/write to server file?

Posted on 1997-03-26
1
182 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
[X]
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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…
Suggested Courses

617 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