?
Solved

request.getParameter () returns null

Posted on 2003-10-29
8
Medium Priority
?
698 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

801 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