This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 action - writing into excel spread sheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 action - writing into excel spread sheet" Watch "Struts 2 action - writing into excel spread sheet" New topic
Author

Struts 2 action - writing into excel spread sheet

Bharath Sundar
Greenhorn

Joined: Feb 19, 2009
Posts: 13
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

Joined: Oct 29, 2001
Posts: 9137
    
    9

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.


[How To Ask Questions On JavaRanch]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Struts 2 action - writing into excel spread sheet
 
jQuery in Action, 3rd edition