Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me Xsl in struts2?

 
hung kin
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I user Struts2 but not Exporting data from table in JSP to excel or CSV? help me...
thanks......very..thanksss!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic