This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help me Xsl in struts2?" Watch "help me Xsl in struts2?" New topic
Author

help me Xsl in struts2?

hung kin
Greenhorn

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

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).
 
jQuery in Action, 2nd edition
 
subject: help me Xsl in struts2?
 
Similar Threads
struts2
Struts2
Error with Struts2
Struts2
struts2