| Sign In/My Account | View Cart |
| Article: |
Using the Jakarta Commons, Part 1 | |
| Subject: | FileUpload is not identifying html file element. | |
| Date: | 2006-11-20 08:59:59 | |
| From: | Rocke | |
|
Response to: FileUpload
|
||
|
I hava a problem in using commons upload component. I have the foll. code in my jsp. <html> <body> <form name="myform" action="/surety/UploadDocumentAttach.do" method="post" enctype="multipart/form-data"> <input type="file" name="myfile"> <input type="submit" name="Submit" value="Submit your files"/> </form> </body> </html> 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:
|
||