Hi All I am playing around with the O'reilly file upload package.here is my html file <html> <body> <form enctype="multipart/form-data" action="servlet/UploadServlet" method="POST" > Enter name of the School: <input type="text" name="name"><br> Select a file to Upload: <input type="file" name="fileToUpload"> <input type="submit" value="UPLOAD MY FILE"> </form> </body> </html>
When the request is sent to the servlet the values returned for the two parameters is null. Anybody knows why? regards sanj
"kalaiselvan" your name doesn't agree with the javaranch guidelines. please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp thanks for your cooperation. - satya
Sanja, Once, I faced same problem. I got around it by changing the action of the form. e.g. If action is www.xyz.com, change it to www.xyz.com?input1=value1&input2=value2. You have to write a javascript (onSubmit). Regards -Deep Narsay