Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes multipart/form-data with controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "multipart/form-data with controller" Watch "multipart/form-data with controller" New topic
Author

multipart/form-data with controller

Angel Garcia
Greenhorn

Joined: May 07, 2012
Posts: 1
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.
 
wood burning stoves
 
subject: multipart/form-data with controller