Solved

request.getParameter () returns null

Posted on 2003-10-29
8
690 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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