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

saradhasivaraman

Members
  • Posts

    10
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by saradhasivaraman

  1. This issue has been resolved..

    ((com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet)$P{REPORT_SCRIPTLET}).generateGraph()  This line referred form the url http://community.jaspersoft.com/questions/503439/chart-scriptlet-real-example as such doesn't work..

    1) Need to specify the class name in the scriptletclass of ireport

    Example:com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet

    then

    2) specify the method name in the tag.

      Example :$P{REPORT_SCRIPTLET}).generateGraph(). jst specifying the method name with the reference object of the class ($P{REPORT_SCRIPTLET}))   will suffice in imageexpression ...

     

    This works fine..

     

     

  2. Hi ,

     I have created the image inside the   in jrxml and  have written the javaclass using scriptlet and  have invoked jfreechart api to create a barchart  and the  java file has been

    exported as jar .  This jar has been set in class path of the ireport ; after which I compiled the jrxml file and executed the report.It is working Fine.. but in jasper server.. Iam not able to excute the report .. Can anyone help me to configure jar file in jasper server..

     

     

     

  3. Hi ,

    Need chart scriptlet real time example to take up data's dynamically... the one which i referred  http://community.jaspersoft.com/questions/503439/chart-scriptlet-real-example from this site doesn't seem to work.. P

    Refering from abv url..

    Not able to find the API generateGraph() from the REPORT_SCRIPTLET 

    ((com.brainscript.yield.yieldgraph.service.YieldChartReportScriptlet)$P{REPORT_SCRIPTLET}).generateGraph()  

     

    Plz help me ..

     

     

     

  4. Hi ,

    I need to select the count between the starttime and end time as parameters... like select count (*) from table name where start_time={$param1) and End_time={$param2} but i need to convert  Start time and End time  into the unix time using java code code  and then pass the converted time to the select query... how can i achieve this... Plz help on this...

     

     

     

  5. HI... It has been resovled... jst try to make ur class file(  net.sf.jasperreports.j2ee.servlets.ImageServlet) avialable in the build/classes folder and clean and deploy the weblogic server..Since the web.xml searches for the corresponding class file in the build/classed folder.

  6. Hi ,

    I have used serlvet to direct the jasper chart to Browser... Here is the snippet for the same...

    web.xml

     

     <servlet>
        <servlet-name>webreport</servlet-name>
        <servlet-class>
          net.ensode.jasperbook.HtmlReportServlet
        </servlet-class>
      </servlet>
      <servlet>
        <servlet-name>ImageServlet</servlet-name>
        <servlet-class>
          net.sf.jasperreports.j2ee.servlets.ImageServlet
        </servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>webreport</servlet-name>
        <url-pattern>/webreport</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ImageServlet</servlet-name>
        <url-pattern>/image</url-pattern>
      </servlet-mapping>
     and I use JRHtmlExporter in my HtmlReportServlet class to direct it to the browser
     
    JRHtmlExporter htmlExporter = new JRHtmlExporter();
          response.setContentType("text/html");
          request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_
                                    PRINT_SESSION_ATTRIBUTE, jasperPrint);
          htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT,
                                    jasperPrint);
          htmlExporter.setParameter(JRExporterParameter.OUTPUT_WRITER,
                                    printWriter);
          htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
                                    "image?image=");
          htmlExporter.exportReport();
     
    I face the problem while deploying the weblogic sever... It throws runtime classnotfound exception  net.sf.jasperreports.j2ee.servlets.ImageServlet

     

      net.sf.jasperreports.j2ee.servlets.ImageServlet this class is avialable under the jar jasper reports 4.5

     <servlet-class>

          net.sf.jasperreports.j2ee.servlets.ImageServlet
        </servlet-class>

     

    Can U Guys plz help me..

×
×
  • Create New...