Jump to content
We've recently updated our Privacy Statement, available here ×

usuario13

Members
  • Posts

    2
  • Joined

  • Last visited

usuario13's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. Thank you. I also missed this: <parameter name="nomUsuari" isForPrompting="false" class="java.lang.String"/> :)
  2. I''ve got a servlet with this code: String user = request.getParameter("USER"); HashMap map = new HashMap(); map.put("nomUsuari",user); JasperPrint print = JasperFillManager.fillReport(report, map, conn); And a jrxml file with this: <queryString language="SQL"> <![CDATA[sELECT * FROM usuaris WHERE USER LIKE '$p{nomUsuari}']]> </queryString> And fields like this: <field name="USER" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> But as a result, i get an empty PDF document and no errors. I've got another servlet with the same code, but with a null HashMap, and a query string like "select * from table" and it works fine. What's the problem? Thanks
×
×
  • Create New...