Wrong, you can do it with an HTML form, with the input tag to file:
<form action="uploadform" enctype="multipart/form-data">
<input type="file" name="upload">
<input name="WHAT You want>
blablabla...
</form>
but you need to parse yourself the request in your jsp page...
because jsp 1.0 don't introspect multipart request.
I use a very good java packge from o'reilly for that...
have a look to :
http://www.servlets.com/resources/index.html
see you.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Legros, Bertrand
> Sent: mercredi 27 octobre 1999 10:45
> To: [EMAIL PROTECTED]
> Subject: How to upload files from a jsp page ?
>
>
> Hi all,
>
> I would like to implement an upload facility :
>
> The user should be able from an html form to select a file from his local
> resources (by browsing his local system files). Then, the form
> posted to a servlet would upload the file and update a repository on the
> server side.
>
> I don't think that it's possible with html forms and servlets.
> The only way
> I see now is building an applet to allow the user to browse its
> local system files. Then, load the file through the applet, serialize the
> stream and send it to the servlet.
> My concerns are : is it possible with untrusted applet (or is it necessary
> to sign it and for the user to update its policy file) ?, can the transfer
> be done
> through HTTP (to avoid firewall problems with RMI) ?
>
> My final concern (maybe the most important), am I taking the long
> way around
> ? Maybe is there a better solution for this general upload issue (general
> architecture, design patterns ?)
>
> Thanks for helping me.
>
> Bertrand Legros.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html