A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sending the file contents from the PC to a remote web server
Joined: Dec 14, 2004
Jan 11, 2005 18:37:00
I have a j2EE Web Server on a UNIX machine. I want to write a Web Interface, where the user can select a file from the PC, and then send it onwards to the web container or maybe j2ee container .
Can it be done by just using
One way I think , is to write a
which reads the file, and then have the Applet use a
to send to the HTTP server.
Joined: May 26, 2003
Jan 11, 2005 18:55:00
You don't need the applet. There is an HTML tag for uploading files:
<input type="file" name="file">
will then get the file contents as part of the form, which it can process. While this could be done in a JSP, it is best to keep the code out of the JSP and use a servlet.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Author and ninkuma
Joined: Jan 10, 2002
Jan 11, 2005 19:31:00
Search for information on "multipart request" for futher information.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Sending the file contents from the PC to a remote web server
Please help how to use local classes
can applet read form a file on host machine
Writing to a file
SENDING FILES FROM CLIENT to SERVER
how can i send a file(urgent)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013