title: jasperreports in struts2
body: <p>I have tried to run jasper using Struts2 by passing integer parameters to it. But i am getting an error as </p>
  
  <pre><code>cannot assign instance of net.sf.jasperreports.engine.base.JRBaseTextField to field
  net.sf.jasperreports.engine.base.JRBaseParagraph.paragraphContainer of type
  net.sf.jasperreports.engine.JRParagraphContainer in instance of 
  net.sf.jasperreports.engine.base.JRBaseParagraph
  </code></pre>
  
  <p>The code which i used i </p>
  
  <pre><code>parameterMap.put(parametername, param);
  connection = dbc.getConnection(); 
  JasperPrint jasperPrint = JasperFillManager.fillReport("jasper.jasper", parameterMap, connection);
  JasperExportManager.exportReportToPdfFile(jasperPrint,"jasper.pdf");  
  </code></pre>
  
  <p>Please can any one  help me to resolve this problem</p>