Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JEXCEL to JSP

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to send output to the JSP by using the JEXCEL technique
but i am not able to do it please help

I wrote the following code and after that what do i need to do in the JSP to view this excel sheet

is it the right way i am creating the workbook
that is is it the right parameter that i am passing in the createworkbook method

please help
>
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is part of a JSP, then you need to convert that into a servlet; JSPs can't stream binary content (like XLS files). The "Simple Stream" example in http://faq.javaranch.com/java/CodeBarnServlets shows how to stream binary content from a servlet to the browser.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic