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 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 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 » 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
 
Don't get me started about those stupid light bulbs.
 
subject: Problems while exporting jsp to excel