Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'm using Tomcat 4.1.31 with Velocity 1.4, and I'm trying to upload a file to my servlet using O'Rielly's MultipartRequest class (http://www.servlets.com/cos/). The problem is that I'm submitting a page which contains other input fields (other then the file path), and I need to process those in addition to saving the file to disk. However, when I try to submit the form I don't get the other input fields. For example: <form name="uploadForm1" action="SaveForm" method="POST" ENCTYPE="multipart/form-data"> Text: <input type='text' name='text1'><br> File: <input type='file' name='pic1'><br> <input type='submit' name='upload' value='Upload'> </form> In this case I will not get the "text1" input field in the HttpServletRequest object. Are these values available anywhere in the request other then the "getParameter" method? Thanks
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.