||Using the Jakarta Commons, Part 1|
|Subject:||FileUpload is not identifying html file element.|
Response to: FileUpload
I hava a problem in using commons upload component.
I have the foll. code in my jsp.
<form name="myform" action="/surety/UploadDocumentAttach.do"
<input type="file" name="myfile">
<input type="submit" name="Submit" value="Submit your files"/>
In my action class,
List fileItems = upload.parseRequest(request) is returning 0. It is not identifying the html file element.
Now if I add one more html file element, then the list returned will be 1,which is the second one I added.
What could be the reason. I use struts and I followed all the changes required for this.
My action class code is: