Solved

How to transfer files between web server and Java applet?

Posted on 1997-05-09
7
171 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
[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
  • 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
Industry Leaders: 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!

 

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

Industry Leaders: 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
CSV file parsing thru Java 13 54
junit as external jar or library 7 58
Java class and jar 3 59
netbeans can not run self signed app 8 37
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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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 about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

734 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