This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi, I am trying to generate excel reports through Jasperreports in a web application (still in evaluation mode). I have written the following JSP which is supposed to generate the Excel report. But When I run the example, all the garbage (I think, binary form of the report) comes up in the browser. I have set the content type as response.setContentType("appcation/excel"). Then why is it showing in binary form ? Has anybody use the JAsperreports for excel reporting ina web application before ? thanks in advance... regards, manish <%System.setProperty("jasper.reports.compile.class.path", application.getRealPath("/WEB-INF/lib/jasperreports-0.5.1.jar") + System.getProperty("path.separator") + application.getRealPath("/WEB-INF/classes/") );