Solved

How to transfer files between web server and Java applet?

Posted on 1997-05-09
7
164 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python Assistance 7 71
@SBGen Method 3 35
ForLoop Example 3 40
reverse digits of a number using for loop 5 36
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 This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now