• 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: 9318
10
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic