Solved

request.getParameter () returns null

Posted on 2003-10-29
8
684 Views
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
Thnaks
Arschie
0
Comment
Question by:aarschie
8 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 9646063
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>");
0
 
LVL 18

Accepted Solution

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

Expert Comment

by:kennethxu
ID: 9647181
is this related to your previous question?
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20780740.html
BTW, you have quite some open questions without your follwo up:
http://www.experts-exchange.com/Web/Web_Languages/JSP/viewQuestionHistory.jsp?mid=1349961
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 18

Expert Comment

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

http://www.javazoom.net/jzservlets/uploadbean/documentation/api/index.html
0
 
LVL 3

Expert Comment

by:krispols
ID: 9648488
hello aarschie,

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

regards
0
 
LVL 15

Expert Comment

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

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
Read about the importance of offline branding in the digital age.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 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