Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Open/write to server file?

Posted on 1997-03-26
1
Medium Priority
?
184 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 100 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: 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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

705 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