Link to home
Start Free TrialLog in
Avatar of brent_watson
brent_watson

asked on

List files from server in Applets JTable

Hi Everybody,

Help on how to do the following would be very much appreciated.  Thanks in advance!…

1.  I have a java *applet*, which contains a JTable.  I would like this JTable to display a list of files from the server that is hosting the java applet (Files from a single particular directory).    I just want to know if you can get a list of *server* files from an applet, I don't really need the code to create the JTable, display these, etc.

2.  When a user selects one of the files from the above-mentioned JTable, I would like a 'download' button.  Can anyone provide code that lets you download a file from an applet to the users PC?  (Preferably without having to ask the user where they want this saved each time).

Thanks again!
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brent_watson
brent_watson

ASKER

Thanks for the response.  I created a php page to return my list of files, and will use that to populate the JTable.

Any help on the other 1/2 of my issue? ie - Downloading a file from the server from an applet.

Thanks.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Communicating with a Web Server thru java
http://www.wutka.com/hackingjava/ch6.htm