• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Jakarta FileUpload

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the sample code I am trying to run from http://www.theserverside.com/tt/articles/article.tss?l=HttpClient_FileUpload but keep getting the errors:



but I keep getting the following error:


Can someone tell what am I doing wrong. I have commons-fileupload-1.1.jar in my classpath. I even tried someother samples but keeps getting the same error
i.e. parseRequest(request); I really want to upload an xml file only and read it's content from memory in the servlet and do the processing. Any help is appreciated.

Thanks
[ May 22, 2006: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67732
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The org.apache.commons.io package is not part of commons-fileupload-1.1.jar.
[ May 22, 2006: Message edited by: Bear Bibeault ]
 
Juan Carlos
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, How can I make sure that uploaded file is xml file. I want to upload only xml files. Is there a way that I can restrict upload of files to certain types. Thanks
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic