• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jakarta Commons FileUpload and Servlets

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone!
I am trying to use the 1.0 release of Jakarta Commons FileUpload for handling multipart requests. Once I submit the form to my servlet, the request gets processed by DiskFileUpload.parseRequest(HttpServletRequest request), but the resulting size of the List is 0!!! I've checked to see that the request is indeed a multipart request. I'm not throwing any exceptions. Anyone have any experience with this?
Environment: JBoss+Jetty 3.2.1
Windows2k
HTML:
[...]
<form action="http://parmleys:8080/bq-issue/attachment-proc" method="post" enctype="multipart/form-data" name="attachmentsForm" class="gridItem" id="attachmentsForm">
<div align="center">Upload:
<input type="hidden" name="fileName">
<input type="hidden" name="action" value="write">
<input type="hidden" name="issueID" value="9648">
<input name="uploadFile" type="file" class="gridItem">
<input type="submit" name="Upload" value="Upload" class="gridItem">
</div>
</form>
Java Snippet:
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not know about the Jakarta Commons upload but this library did the job for me and is pretty simple to understand.
http://www.servlets.com/cos/index.html
Good luck,
Yuval
 
reply
    Bookmark Topic Watch Topic
  • New Topic