Com Oreilly Servlet Multipartrequest
If you have already added this to the classpath, then check to see if the class 'com.oreilly.servlet.MultipartRequest' is available in your cos.jar. I cannot read the submitter using request.getParameter. Fsx - Venezuela Scenery Svpa here. Returns null when the ContentType is multipart/form-data. On com.oreilly.servlet.MultipartRequest. Com.oreilly.servlet.MultipartRequest - A utility class to handle multipart/form-data requests, the kind of requests that support file uploads. Com.oreilly.servlet.MultipartRequest - A utility class to handle multipart/form-data requests, the kind of requests that support file uploads.
Sean Sullivan [That is, given the form: What is your name? What file are you sending? I cannot read the submitter using request.getParameter('submitter') (it returns null). ] Situation: javax.servlet.HttpServletRequest.getParameter(String) returns null when the ContentType is multipart/form-data Solutions: Solution A: 1. Invoke getParameters() on com.oreilly.servlet.MultipartRequest Solution B: 1. Invoke readHeaders() in org.apache.commons.fileupload.MultipartStream Solution C: 1. Invoke getParameter on com.bigfoot.bugar.servlet.http.MultipartFormData Solution D: Use Struts.
Struts 1.1 handles this automatically. Uli Integrated 21 Zip.