This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp to Excel using JExcel  RSS feed

 
Jagdish Hatagale
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created report in jsp as html table format i want to export that html table data to excel sheet using JExcel ,
can any body help me out for this i m searching out for this by 4 days its urgent . if posiible can send me code.
thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JExcel can't convert HTML. You'll need to write JExcel code that uses the same data you're using in the JSP page. That should be done in a servlet, though, since JSPs are not suitable for binary data.

An easier approach might be to use the DisplayTag library which can create HTML as well as other output formats like XLS, CSV and PDF.
 
Jagdish Hatagale
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:JExcel can't convert HTML. You'll need to write JExcel code that uses the same data you're using in the JSP page. That should be done in a servlet, though, since JSPs are not suitable for binary data.

An easier approach might be to use the DisplayTag library which can create HTML as well as other output formats like XLS, CSV and PDF.


thanks but i m completly new for this can you please tell me How that will be used in application???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!