File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception with FileUpload

 
Alex Marks
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
David Bridgewater
author
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex...

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).

HTH -

David.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic