It's not a secret anymore!
The moose likes Struts and the fly likes generate csv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "generate csv " Watch "generate csv " New topic

generate csv

Rammohan Bandakunta

Joined: Aug 17, 2005
Posts: 9

I need to generate an csv output as against the regular jsp,

one way i tried is generating .csv file using (io) from DAO and in the front end using a function to open the file in window.

problem is the csv (stored in the project) doesnot get updated until, click on the output submit button twice.

please ,suggest a way to generate xml doc and xslt which in turn generates a csv or using mime type ,I am bit confused as i dont know how I should it
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
How does this relate to Struts?
Rammohan Bandakunta

Joined: Aug 17, 2005
Posts: 9
i am working on struts project where in the output needs to be in a csv format or text format that could be an input into mainframe application.

i am good with the input for which i am using jsp and further form bean and action classes which call an DAO method to enter the contents in to database but at this point action mapping is done to an jsp for an output which is perfect and working fine

requirement is the output needs to be in csv (excel) and other formats.

suggestion as i need to put efforts in to xml,xslt or mime or any other things

I agree. Here's the link:
subject: generate csv
It's not a secret anymore!