Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Servers
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Java Products
jasper error in jsp
Nakata kokuyo
Ranch Hand
Posts: 472
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Good day to All,
i try to run/display the report in
jsp
, but i get error and couldn't display it in jsp
Map parameters = new HashMap(); parameters = (HashMap) request.getAttribute("cn_siri_num"); JasperReport jasperReport = (JasperReport) JRLoader.loadObject("C:\\jakarta-tomcat-5.5.9\\webapps\\usahawan\\WEB-INF\\report\\rpt_cash.jasper"); JasperPrint jasperPrint = JasperManager.fillReport(jasperReport, parameters, MysqlDAOFactory.getDbConnection()); jasperPrint.setName("CASH"); response.setContentType("application/pdf"); JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRPdfExporterParameter.OUTPUT_WRITER, out); exporter.exportReport();
the error code i got :
SEVERE: ServletException in '/pages/cash/cash_report.jsp': No output specified for the exporter.
Appreciate anyone can point out my mistake, thank you very much
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Help on Ireport to pdf
jsf: open pdf in browser
Jasper Reports getting resubmitted to a servlet
Same Jasper Report keeps opening
Struts and jasper report
More...