Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 action - writing into excel spread sheet

 
Bharath Sundar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

In a struts 2 action, i need to generate a spread sheet. So guide me to generate a report in the spread sheet with the action class in struts 2. Please provide me with some examples or links.

Thanks in advance.

Regards,
Bharath.S
 
Joe Ess
Bartender
Posts: 9370
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our FAQ, AccessingFileFormats has your options as far as interfacing with Excel are concerned. I usually generate a CSV file since it is much easier to work with compared to XLS. Unfortunately, it doesn't support formatting or formulas.
Once you create the file, you can send it to the client with StreamResult.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!