Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new to Java programming & in a project I want to upload CSV file using JSP and servlet save into Java DB.... Also there is a requirement that we don't know the size of file & number of columns & rows in advance before uploading file So, code for reading columns from file would be generic.... Can anybody suggest me how to code it !

Here is the JSP code to get file...now want to read this file using servlet and save into JavaDB

HTML
<form name="uploadForm" action="FileUpload.java" method="POST"    enctype="multipart/form-data">
    <input type="file" name="file" value="file" size="20" />
    <br/><br/>
    <input type="submit" value="Submit" name="submit" />
</form>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900