How to transfer files between web server and Java applet?

I am new in Java programming.  Can anyone give me some
suggestions to deliver and load files between web server
and Java applet client?
namnamAsked:
Who is Participating?
 
wcrosmanCommented:
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
 
wcrosmanCommented:
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
 
namnamAuthor Commented:
I'm lokking for bi-directional passing of file data between
server and the applet.  Any method other than data streams?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
namnamAuthor Commented:
I don't intend to use CGI methods.  How about using URL to save the file data on server site?
0
 
wcrosmanCommented:
I believe that to do this using an URL you actually have to POST data and invoke a CGI script or a Servlet.
0
 
namnamAuthor Commented:
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
 
wcrosmanCommented:
Go to the sites referred to in my initial answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.