This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "generate csv " Watch "generate csv " New topic
Author

generate csv

Rammohan Bandakunta
Greenhorn

Joined: Aug 17, 2005
Posts: 9
Hi,

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 ..do it
Jason Menard
Sheriff

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

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

Thanks
 
jQuery in Action, 2nd edition
 
subject: generate csv