It's not a secret anymore!
The moose likes Struts and the fly likes help me Xsl in struts2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help me Xsl in struts2?" Watch "help me Xsl in struts2?" New topic

help me Xsl in struts2?

hung kin

Joined: Nov 18, 2008
Posts: 6
I user Struts2 but not Exporting data from table in JSP to excel or CSV? help me...
David Newton

Joined: Sep 29, 2008
Posts: 12617

There is no built-in support for exporting to Excel.

It's easy to create a CSV response by using, for example, the FreeMarker result, which also allows setting of the content type in the result configuration. You could also do the same thing in a JSP result by using a scriptlet to set the content type.

You could also use any of several MS-Office libraries to create an actual Excel file (like Poi for example).
I agree. Here's the link:
subject: help me Xsl in struts2?
It's not a secret anymore!