request.getParameter () returns null

Posted on 2003-10-29
Last Modified: 2007-12-19
Hi All,
 I have a jsp which has a post method on the form to process upload file (Using UploadBean) inmy servlet.
I have some other parameters which when tried to be retrieved inthe servlet retunr NULL.
If I make it "GET" method in the JSP. I get the values but the uplodbean doesn't work.
Any help is appreciated
Question by:aarschie
LVL 18

Expert Comment

ID: 9646063
assuming you are using the package from javazoom (javazoom.upload*, javazoom.upload.parsing.*):

in particular:

MultipartFormDataRequest mfdr = new MulitpartFormDataRequest(request);
String param = mfdr.getParameter("<your parameter>");
LVL 18

Accepted Solution

bobbit31 earned 500 total points
ID: 9646067
and btw, make sure it's a post
LVL 14

Expert Comment

ID: 9647181
is this related to your previous question?
BTW, you have quite some open questions without your follwo up:
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

LVL 18

Expert Comment

ID: 9647474
the link i posted doesn't work for some reason.. try this one:

Expert Comment

ID: 9648488
hello aarschie,

Just use jakarta Commons/FileUpload. It must solve all your problems.

LVL 15

Expert Comment

ID: 9649060
yes commons/fileupload is a good product to parse multipart/form-data

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
attribute vs parameter and setter vs add method 17 89
reflections, dynamic class loading 3 75
Set up Wildfly 10 8 422
servlet example 17 51
IT certifications are a concrete representation of continual learning on the part of the candidate.  Continual learning is necessary for the long term success of an IT professional, but are IT certifications the right path for you?
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question