Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to transfer files between web server and Java applet?

Posted on 1997-05-09
7
Medium Priority
?
177 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
Technology Partners: 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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.
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…
This video teaches viewers about errors in exception handling.
Suggested Courses

636 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