• 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-data with controller

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.

I'm trying to develop a small application in which a multipart form sends the request to a controller and it redirects to the servlet that processes it. For that I use a hidden field with the id form in which I set which servlet use.
If I use Tomcat 7 I have no problems. The trouble is that I have to use Tomcat 6 and here I fail to make it work.
I tested with 2 libraries. Apache fileupload and other downloaded from O'Reilly, both in the controller I can get the parameter form and find out which servlet redirect, but I can not process the form in the servlet again, it is as if the controller removed the parameters.

The code with OReilly library:

Apache Fileupload:

To redirect:

Can someone help me?

Thanks and best regards.
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic