Jsp passing parameter to jrxml show pdf have some problem

0

I want pass parameter to jrxml

when I pass to , I alway get empty pdf.

and haven't any error message

So I don't know where have problem and how to fix it

But if  I don't pass after  and use sql command  it's can work

I guess maybe is pass to jrxml after sql research conditon have error.

it's my show.jsp

Map 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>
 
 
 
 
free576002's picture
Joined: Jan 11 2016 - 9:04pm
Last seen: 3 years 3 months ago

0 Answers:

No answers yet
Feedback
randomness