dcsimg
how to recieve a file sent by form using <input type=file> format in servlet.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vinay_B
Posted On:   Saturday, March 24, 2001 06:16 AM

For ex.






Now how do i read this file in myservlet servlet. I want the user to select the file from his local hard disk and update the content to a table.

Re: how to recieve a file sent by form using <input type=file> format in servlet.

Posted By:   Anonymous  
Posted On:   Sunday, March 25, 2001 11:34 PM

Hi,

Use MULTIPARTREQUEST file given by ORielly in his site to do the uploading of a file and then use Enumeration to parse the file content.

Then it is a regular process of using String Tokenizer and updating the database witht the values
About | Sitemap | Contact