wood burning stoves 2.0*
The moose likes JSP and the fly likes Exception with FileUpload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Exception with FileUpload" Watch "Exception with FileUpload" New topic

Exception with FileUpload

Alex Marks
Ranch Hand

Joined: Sep 12, 2005
Posts: 31
I am using a HTML form with ENCTYPE="MULTIPART/FORM-DATA" to upload a file , at the other servlet, i just want to check the request to see whether it is a multipart/form-data or not but i receive an error: javax.servlet.ServletException: Servlet execution threw an exception

Which Exception i have to include ?

Thank you for your help and looking for your replies .
[ September 21, 2005: Message edited by: Bear Bibeault ]

Before I come here, I am confused about Servlet/JSP. Ater I come here, I am more confused about it, but in systematically.
David Bridgewater
Ranch Hand

Joined: Apr 29, 2004
Posts: 44

I would recommend that you give a few more details of the code (servlet or JSP?) which is receiving the uploaded file.

Also, even though it hasn't been updated in a while, I would check out the famous multipart upload free code written by Jason Hunter (co-author of Java Servlet Programming, O'Reilly).


Don't get me started about those stupid light bulbs.
subject: Exception with FileUpload
Similar Threads
POST data with a file upload
FileUploading in struts
Problem in Java Mail using Servlet
BufferedWriter for Mulitple file type
Why multipart/form-data does not work with post metho in servlet