Link to home
Start Free TrialLog in
Avatar of aarschie
aarschie

asked on

request.getParameter () returns null

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
Thnaks
Arschie
Avatar of bobbit31
bobbit31
Flag of United States of America image

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

http://www.javazoom.net/jzservlets/uploadbean/documentation/api/javazoom/upload/MultipartFormDataRequest


in particular:

MultipartFormDataRequest mfdr = new MulitpartFormDataRequest(request);
String param = mfdr.getParameter("<your parameter>");
ASKER CERTIFIED SOLUTION
Avatar of bobbit31
bobbit31
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kennethxu
kennethxu

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

http://www.javazoom.net/jzservlets/uploadbean/documentation/api/index.html
hello aarschie,

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

regards
yes commons/fileupload is a good product to parse multipart/form-data