Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Access POST request parameter in a multipart request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Access POST request parameter in a multipart request" Watch "Access POST request parameter in a multipart request" New topic
Author

Access POST request parameter in a multipart request

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hey,
I'm using Apache commons upload to upload a file and two hidden fields to the server.
Well, how to access the two hidden fields in the servlet since the request is a multipart one?
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

The common library API allows for this. Please check the API.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Read the 'User Guide' section at their homepage.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Access POST request parameter in a multipart request