Pedro Meza wrote:
>
> I am trying to use JSP to upload a file.
>
> Does anyone have bean code to do this ????
>
> If I have a form with a FILE element how is this passed to the bean ????

File uploading is done through a special encoding (multipart/form-data)
of a POST request, and JSP pages do not deal with this type of encoding
easily. You're much better off using a regular servlet for uploading.

A commonly used file upload servlet is Jason Hunter's, available at
<http://www.servlets.com/resources/index.html>. Also, search through
the archives for this mailing list and SERVLETS-INTEREST since this
has been discussed many, many, many times before ...

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to