• 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

multipart form & req.getParameter problem

 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am building a multipart form for a user to upload pics to his site (too dumb to use ftp) and Ive hit a snag that I dont quite get. I have 2 hidden fields that hold the product number and a task variable that I use in the main controller's switch statement. Im not getting these 2 fields using a javax.servlet.http.HttpServletRequest - .getParameter("field_name"). Im using the Oreilly servlet package for the image uploads but the main controller uses this task variable extensively & playing games trying to figure out if they are uploading or one of the other 20 things seems like a real pain in the you-know-what. Does the javax.servlet.http.HttpServletRequest not recognize info from a multipart form?

I swear Ive done this before but cant seem to find the code! Any & all "kicks in the brain" would be much appreciated ... I know Im missing somethign stupid here & I am working on 2 hours sleep so Im probably just brain-dead! Thanks
[ September 02, 2004: Message edited by: DC Dalton ]
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You use ParamPart similarly to the way you use FilePart. Both of which are results of the mutlitpart parser.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic