Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSP to Excel

Reply
Thread Tools

JSP to Excel

 
 
Mayur
Guest
Posts: n/a
 
      01-23-2007
I am using
response.setHeader("Content-Disposition","attachment;filename=fileName.xls");
response.setContentType ("application/vnd.ms-excel");
in my JSP to get my output in excel, it is working fine but i cannot
set name to the WorkBook or add new WorkBook in the same excel sheet.
Can anyone suggest me any way to do so.

 
Reply With Quote
 
 
 
 
andreic
Guest
Posts: n/a
 
      01-24-2007
Hi,

You could generate your Excel file using the POI-HSSF library available
at jakarta.apache.org/poi/hssf/index.html - it's very simple to use it
and yet very powerful. I have used in one of my school projects (stand
alone SWING application) and I believe it will work with JSP also ...
first create the Excel file, then download it.
Hope my sugestion will help you!

AndreiC

On Jan 23, 11:14 am, "Mayur" <(E-Mail Removed)> wrote:
> I am using
> response.setHeader("Content-Disposition","attachment;filename=fileName.xls"*);
> response.setContentType ("application/vnd.ms-excel");
> in my JSP to get my output in excel, it is working fine but i cannot
> set name to the WorkBook or add new WorkBook in the same excel sheet.
> Can anyone suggest me any way to do so.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
[JSP] difference between jsp:forward and jsp:include alexjaquet@gmail.com Java 0 06-02-2006 01:21 PM
JSP 2.0: <jsp:attribute> in <c:if> Timo Nentwig Java 0 05-10-2004 03:05 PM
Custom tags and <jsp:plugin> / <jsp:param> Raymond DeCampo Java 0 02-18-2004 01:29 AM
[JSP] Strings Constants from JSP using Struts tags Matthias Nietz Java 1 11-12-2003 04:32 PM



Advertisments