aspose file tools*
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: 8997
    
    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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 action - writing into excel spread sheet