In this section, you will learn how to Export data into CSV file using Servlet. We have created file "JdbcCsvFile.java" to export data from this .java file..
Brief description for the flow of application :
A CSV file is commonly known as a Comma Delimited File or a Character Separated File. It is a text file that has a specific format which allows saving of text in organized manner. This format known as a flat table, is very simple. Each row contains one record of information. The character used to distinguish each piece of data within each record is most commonly used a comma ",".
*)Create a folder "csv" in the C:\ Drive:.
*)Create a file "CsvFile.java" that creates a CSV file "myfile.csv".
*)Download the "Tomcat apache Server With Latest version" and run with the URL
Step 1: Create a Servlet "CsvFile.java"
Step 2:Create a "Web.xml" for mapping the Servlet "CsvFile.java".
Recommend the tutorial