Solved

How to transfer files between web server and Java applet?

Posted on 1997-05-09
7
168 Views
Last Modified: 2013-11-24
I am new in Java programming.  Can anyone give me some
suggestions to deliver and load files between web server
and Java applet client?
0
Comment
Question by:namnam
  • 4
  • 3
7 Comments
 

Expert Comment

by:wcrosman
ID: 1220315
Are you referring to files on the server being delivered to the applet?
Or, are you looking for bi-directional passing of file data?
0
 

Author Comment

by:namnam
ID: 1220316
I'm lokking for bi-directional passing of file data between
server and the applet.  Any method other than data streams?
0
 

Accepted Solution

by:
wcrosman earned 0 total points
ID: 1220317
Streams are the standard Java way to deal with file data.  However, if
you don't want to deal with streams on the applet side you can use
CGI programming methods or server side java (Servlets).

With CGI methods you can post data to files on the Server and retrieve some responses.

With Servlets you can carryon a two way conversation with the Server and
have the Servlet read-write data to files.  Note that the Servlet will still have to deal with data streams.

Servlets are documented in the site formerly known as Jeeves at JavaSoft.  Servlets require a Java enabled http server or a java enable
server monitoring a specific port on the same machine as the http server.
WebLogic provides this type of server and has lots of documentation about developing these kinds of applications.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:namnam
ID: 1220318
I don't intend to use CGI methods.  How about using URL to save the file data on server site?
0
 

Expert Comment

by:wcrosman
ID: 1220319
I believe that to do this using an URL you actually have to POST data and invoke a CGI script or a Servlet.
0
 

Author Comment

by:namnam
ID: 1220320
Can you give me more info about Servlet?  Can I use it in java
applet?  Do I need to install any package in order to use it?

0
 

Expert Comment

by:wcrosman
ID: 1220321
Go to the sites referred to in my initial answer.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java jdbc batch example 8 41
java stored proc example 9 46
hashmap order 17 37
Regarding swagger API 1 15
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…
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…
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 will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 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