Jump to content

Recommended Posts

Posted

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>
 
 
 
 
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...