jesus_jfri Posted October 7, 2015 Share Posted October 7, 2015 Hey people, i want to display my empty report( only with a tittle made in jasper studio) in my web broswer, using my jsp like i always do . because I am learning how to use it, the thing is I used this piece of code in my jsp: <%@ page contentType="application/pdf" %><%@ page trimDirectiveWhitespaces="true" %><%@ page import="net.sf.jasperreports.engine.*" %><%@ page import="net.sf.jasperreports.engine.export.*" %><%@ page import="java.util.*" %><% JasperPrint print = JasperFillManager.fillReport("/resources/Reports/reportjasper", new HashMap(),new JREmptyDataSource()); JasperExportManager.exportReportToPdfStream(print,response.getOutputStream()); %> but when i try to charge the web page , i saw an error and it does not charge my pdf report, the jar what I include were jasperreports-6.1.0.jar, jasperreports-fonts-6.1.0.jar and jasperreports-functions-6.1.0. Any idea people? I will be gratefull with you all! Link to comment Share on other sites More sharing options...
hozawa Posted October 7, 2015 Share Posted October 7, 2015 You're missing some jar files. Check the following page:http://community.jaspersoft.com/questions/817357/what-are-jars-needed-connect-java-jasper-reports Link to comment Share on other sites More sharing options...
jesus_jfri Posted October 7, 2015 Author Share Posted October 7, 2015 oh , i added it, on the project right click , properties, java build path, add externals jars....... did i it good? Link to comment Share on other sites More sharing options...
hozawa Posted October 8, 2015 Share Posted October 8, 2015 Did you add "import" for them too? Link to comment Share on other sites More sharing options...
jesus_jfri Posted October 13, 2015 Author Share Posted October 13, 2015 i solved it , added all libraries, (including 1 called yoda i dont know what does it do) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now