How to run jasper report from JSP page with parameter

0

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
30
Joined: Jan 4 2018 - 11:06am
Last seen: 1 year 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 - 2 years 8 months ago

2 Answers:

-2


 

Buela's picture
30
Joined: Jan 4 2018 - 11:06am
Last seen: 1 year 6 months ago
0

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
1270
Joined: Oct 12 2015 - 12:05pm
Last seen: 2 months 2 days ago
Feedback
randomness