action="../servlet/ServletName?hidReq=XYZ2000&hidOpr=ABC&cmbpqr=1" method="post" enctype="MULTIPART/FORM-DATA"
Originally posted by Ben:
Instead of passing those values in the querystring, try making them regular form values and retrieve them with the methods provided by the fileupload library. Remove all calls to getParameter
Originally posted by Me:
Is there any additional libraries required apart from:
commons-fileupload-1.2.jar for above mentioned problem
Originally posted by Me:
Is there any additional libraries required apart from:
commons-fileupload-1.2.jar for above mentioned problem.
Originally posted by Ben:
With servlets, you can either call getInputStream and parse everything yourself (which is what Apache's fileupload does) OR call one of the methods that causes the request to parse the input stream for you.
These methods are getParameter, getParameterMap, getParameterNames, and getParameterValues.
You can not do both with the same request.