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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is this related to your previous question?
https://www.experts-exchange.com/questions/20780740/getContentType-is-returning-null.html
BTW, you have quite some open questions without your follwo up:
https://www.experts-exchange.com/Web/Web_Languages/JSP/viewQuestionHistory.jsp?mid=1349961
https://www.experts-exchange.com/questions/20780740/getContentType-is-returning-null.html
BTW, you have quite some open questions without your follwo up:
https://www.experts-exchange.com/Web/Web_Languages/JSP/viewQuestionHistory.jsp?mid=1349961
the link i posted doesn't work for some reason.. try this one:
http://www.javazoom.net/jzservlets/uploadbean/documentation/api/index.html
http://www.javazoom.net/jzservlets/uploadbean/documentation/api/index.html
hello aarschie,
Just use jakarta Commons/FileUpload. It must solve all your problems.
regards
Just use jakarta Commons/FileUpload. It must solve all your problems.
regards
yes commons/fileupload is a good product to parse multipart/form-data
http://www.javazoom.net/jzservlets/uploadbean/documentation/api/javazoom/upload/MultipartFormDataRequest
in particular:
MultipartFormDataRequest mfdr = new MulitpartFormDataRequest(r
String param = mfdr.getParameter("<your parameter>");