Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

upload servlet

 
navat venu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the error when i executed the upload servlet using below html

<html>
<body>
<FORM ACTION="venus.venu" ENCTYPE="multipart/form-data" METHOD="POST">
What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
Which file do you want to upload? <INPUT TYPE=FILE NAME=file> <BR>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>


please do the needful!!

Error is

COMMONS error rg.apache.commons.fileupload.FileUploadBase$InvalidContentTypeEx
ception: the request doesn't contain a multipart/form-data or multipart/mixed st
ream, content type header is nullerror :java.lang.NullPointerExceptionerror :jav
a.lang.NullPointerException
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic