Solved

How to transfer files between web server and Java applet?

Posted on 1997-05-09
7
163 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

762 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

24 Experts available now in Live!

Get 1:1 Help Now