Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multipart/form-data with controller

 
Angel Garcia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic