Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

null values returned when using request.getParameters(

843840Mar 27 2002 — edited Apr 1 2002
I have a html form which allows the user to choose options and select a file to upload. When I use method=Post I get null values returned. When I use method=Get I get my parameter values fine.. but I get an error.
"Posted content type isn't multipart/form-data"

I would like to know why I am getting null values returned when using Post. I am using the following to get the values from the name=value passed to the servlet.

String strIndustry = request.getParameter("frmIndustry");
String strCompany = request.getParameter("frmCompany");
String strCollabType = request.getParameter("frmCollaboration");


I have another form where the user can search information in a database that works just fine w/ either Get or Post

Or perhaps I am using oreilly MultipartRequest incorrectly??? but I copied it directly from another discussion.. ???

any thoughts

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2002
Added on Mar 27 2002
4 comments
583 views