free576002 Posted January 14, 2016 Posted January 14, 2016 I want pass parameter to jrxmlwhen I pass to , I alway get empty pdf.and haven't any error messageSo I don't know where have problem and how to fix itBut if I don't pass after and use sql command it's can workI guess maybe is pass to jrxml after sql research conditon have error.it's my show.jspMap Parameter = new HashMap(); Parameter.put("ID","A11");System.out.println(String.valueOf(Parameter));JasperReport jasperReport = JasperCompileManager.compileReport(input);JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, Parameter, conn); and this my jrxml<parameter name="ID" class="java.lang.String" ></parameter><queryString><![CDATA[select * from person where ID = '$P!{ID}']]></queryString>
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