Solved

Open/write to server file?

Posted on 1997-03-26
1
181 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 91
jsp insert to database example 2 90
dao vs facade design patterns 2 72
Is there a Google Voice API? 9 74
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
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.
Suggested Courses

738 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