Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MS Excel sheet using Java/JSp

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I need to pop up a chart when the user clicks a link on the page. The data for the chart is present in the Database.
I also need to pop up a MS-Excel sheet representing the Data in the database. Any pointers/ suggestions to achieve Excel-Java interaction w'd be of great help to me.
thanks in advance
karthik.
 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Karthik!
One way of generating an excel sheet is by setting the page directive of the JSP page to:
<%@ page contentType="application/vnd.ms-excel" %>
And after this the data should be supplied. One way of formatting the content is to put rows on separate lines of the document an to use tabs between each of the columns:
<%-- There are tabs, not spaces, between columns. --%>
2000 ��2001 ��2002���2003
50 ������60 �����70 �����80

Happy hacking!
Regards
------------------
Dominic Steng�rd
Sun Certified Java 2 Programmer
------------------

[This message has been edited by Dominic Steng�rd (edited March 26, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic