• 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

Getting a Parameter

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'd like to know how can I get a Parameter from a "multipart/form-data" form.
Thanks.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've written an abstract class that (among other things) retreives multipart/form-data parameters. I've posted the source here "http://www.gvaldig.addr.com/public/Servlet.java". Take a look at the code specifically these 3 methods.
1) getMultipartData (as well as comments at beginning of method)
2) getMultipartParameter
3) getMultipartFilename
P.S. You won't be able to compile it, since you need a bunch of other classes, however it should be enough enough to get you going. If you need more help with it, let me know (zsalzer@yahoo.com).
 
Joey Alencar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks swishhh, the Servlet really helped me.
 
reply
    Bookmark Topic Watch Topic
  • New Topic