This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes jsp to Excel using JExcel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jsp to Excel using JExcel" Watch "jsp to Excel using JExcel" New topic
Author

jsp to Excel using JExcel

Jagdish Hatagale
Ranch Hand

Joined: Apr 07, 2010
Posts: 33
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
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
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.


Ping & DNS - my free Android networking tools app
Jagdish Hatagale
Ranch Hand

Joined: Apr 07, 2010
Posts: 33
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???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp to Excel using JExcel