How to run jasper report from JSP page with parameter

Hi, 

I have created a jrxml report with database values.But how could i will call this report from jsp Page. Can anyvody plz help me.

Buela's picture
172
Joined: Jan 4 2018 - 11:06am
Last seen: 4 years 6 months ago

 am using java  to call jasper report.I have added the library files also.Still am getting error at

<%@ page  import="net.sf.jasperreports.engine.*"%> //cannot find symbol

 byte[] bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, conn); //cannot find symbol.

please help me what i  am missing  

Buela - 5 years 8 months ago

2 Answers:


 

Buela's picture
172
Joined: Jan 4 2018 - 11:06am
Last seen: 4 years 6 months ago

I would suggest publishing the report on to the Jasper server and then use the REST API for calling the report.

If you still want to use the jsp, there are so many tutorials which can provide you with guidance. (http://www.javaknowledge.info/calling-jasper-report-from-java-web-applic...)

reportdev's picture
12950
Joined: Oct 12 2015 - 12:05pm
Last seen: 1 year 3 months ago
Feedback