Hi,

     I need to process users file and update database after doing some
validations.  For this I have written a small html file to accept the file
name from
the user.  For thie I have used "type=file" and I called a JSP file to
print the contents
of the fields posted by the calling html doc.  The called jsp file returned
me the
name of the file:


HTML File:
~~~~~~~
<html>
<body>
<form     name="login_form"
     action="ProcFile.jsp"
     method="Post"

<b>File Name </b>
<input  type="file"
     Name="MyFile">
</body>
</html>

ProcFile.jsp
~~~~~~~~
<html>
<body>
     File received: <%= request.getParameter("MyFile") %>
</body>
</html>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to access the contents of the file?  The above scripts the entire path
of the file name on the
client machine.

Thanks
K.V. Srinivas Kumar

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to