wood burning stoves 2.0*
The moose likes JSP and the fly likes Problems while exporting jsp to excel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problems while exporting jsp to excel" Watch "Problems while exporting jsp to excel" New topic
Author

Problems while exporting jsp to excel

anil kodey
Greenhorn

Joined: Feb 25, 2008
Posts: 1
I'm able to export jsp to excel.. I used response.setContentType("application/vnd.ms-excel")

Which opens jsp page in excel format. But it's not exporting colored texts to excel. I'm not using font tag in html. I'm using class tag for all the tags and excel is not recognizing these classes. Let me know if there is any way to do it.If there is a way please do post the code
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by anil kodey:
I'm able to export jsp to excel.. I used response.setContentType("application/vnd.ms-excel")


You're not really exporting to Excel when you do this.
See: JspAndExcel for information on generating actual Excel files from Java applications.

This was debated at length in
this thread earlier this month.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problems while exporting jsp to excel
 
Similar Threads
Alignment issue while Export data to Excel file from a jsp
Save a webpage as PDF or Excel file
Export to excel without hiding columns
Number Stored as Text in Excel Output
How do i call excel sheet into my jsp for report generation