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
34
Joined: Jan 4 2018 - 11:06am
Last seen: 7 months 2 weeks 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 - 1 year 10 months ago

2 Answers:

0


 

Buela's picture
34
Joined: Jan 4 2018 - 11:06am
Last seen: 7 months 2 weeks 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
1222
Joined: Oct 12 2015 - 12:05pm
Last seen: 3 months 5 days ago
Feedback
randomness