wood burning stoves 2.0*
The moose likes Java in General and the fly likes writing to CSV file from a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "writing to CSV file from a servlet" Watch "writing to CSV file from a servlet" New topic
Author

writing to CSV file from a servlet

Ruchee Goyal
Greenhorn

Joined: Sep 12, 2006
Posts: 12
Hi,

I'm new to this forum so please forgive me if it's a duplicate question.
My problem is that i've the content coming in POST request of a servlet which is being sent as a single element in an arraycollection from Flex Builder client. and from the servlet i need to write that data to a csv file (inserting new line for a space or something)

let me know if you need me to explain further.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

You mean you want to know how to write to a file in csv format? There are numerous CSVParsers (and CSVWriter) which can do this. One of them is OpenCSV which has a CSVWriter which can do the job for you
[ April 16, 2007: Message edited by: Jaikiran Pai ]

[My Blog] [JavaRanch Journal]
Ruchee Goyal
Greenhorn

Joined: Sep 12, 2006
Posts: 12
Thanks Jaikiran,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: writing to CSV file from a servlet