Jasper report with Struts2 and hibernate.

Hey all!
I'm new to Struts2, Hibernate and jasper report. I want to make a report using those tools. Can anybody pls help me by providing a step by step process for it?
I'm using eclipse Ganymede IDE. And want to view report on page with two search criteria as start date to end date and an option choosing.
Can any body pls response me for this?

Yes you can, you'll need to create a new library in JDeveloper with the Jasper reports JARs.
See: Re: JasperReport with Jdeveloper

Similar Messages

  • Using jasper Reports with Tomcat5.5

    hi ,
    i am trying to use Jasper Reports with Tomcat 5.5 but not able to do it.
    i have written a simple java program to read data from MySql database and generate a report in PDF format. the good thing is that when i am doing this as a independent java program and running it in Eclipse3.2 then its working fine. but i am not able to run it as a sevlet thru Tomcat5.5.
    any help ? is there any issue with version ...
    i am using JDK 1.5 , Tomcat5.5
    regs,
    sajid

    i am not able to figure it out. usually all web app picks files in WEB-INF folder . see below the exception ....
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    java.lang.VerifyError: (class: net/sf/jasperreports/engine/xml/JRXmlDigesterFactory, method: configureDigester signature: (Lorg/apache/commons/digester/Digester;)V) Incompatible argument to function
         net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
         net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:195)
         com.iflex.poc.reports.ReportManager.generateReport(ReportManager.java:25)
         com.iflex.poc.reports.ReportServlet.doGet(ReportServlet.java:15)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.16 logs.

  • Is there any ECC report with PurchOrder and Purchase Requisition Selection

    Hi there,
    for one of my BI report reconciliation with ECC requirement, I would like to know how many POs are there without Purchase requisitions, same way want to know how many POs are there with Purchase requisition.
    I know some tables where we can find this info, unfortunately I cannot ask my user to go and check in Tables for Acceptance testing. So I am looking for any standard ECC report with POs and PRs as Columns
    Due to time constraints, I cannot go build any ABAP queries in ECC at the moment,
    Any insights are greatly appreciated.
    Thanks

    Hi Curious ,
    Check if the following link is helpful. The link is from the SDN Wiki for creating a Z Report in R/3 for Purchase Requisition.
    http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseRequisitionDetail+Report
    Or try the following transactions:
    ME5A - Purchase Requisitions: List Display
    ME53  - Display Purchase Requisition
    ME53N - Display Purchase Requisition
    Hope this helps your cause.
    Regards,
    Kush Kashyap

  • I need to make a report with graphs, and generate an exit file to word

    I have to do the acquisition for a laboratory and to make inmediately a report with graphics and a constant test about the method of the experimentation

    Probably your best bet is to use ActiveX and control Word from LabVIEW, this way, you can act as you were using Word directly, automating all the steps to create your report. Look for examples in the developer zone, although there will be more examples relating Excel, that can show you the way to act. If you need to use this intensively, i think NI has created a Word toolokit that you can buy.
    For any particular question, just ask.
    Good luck

  • Connecting Crystal reports with dashboards and passing parameters

    Hi ,
    Can anyone have any document on Connecting Crystal reports with dashboards and passing parameters.
    I would appreciate for this.
    Thank You.

    Hi Ganesh,
    You can refer the following links for connecting Crystal reports with dashboards:
    Dashboard integration in Crystal Reports using flash variables | Clariba Blog
    https://websmp102.sapag.de/~sapidp/011000358700001426732009E/Xcelsius_EmbeddingInCR2008.pdf
    http://events.asug.com/2012BOUC/0315_Integrating_SAP_Dashboards_into_SAP_Crystal_Reports.pdf
    Regards,
    Renu

  • Enhancing Customer Reports with Commands and Parameters

    Hi All,
    I am implementing the mentioned tutorial. I have succesfully deployed the AccessStatisticApplication PAR on portal. While scheduling the report from Content Management -> Reports -> Running Reports, it is giving error "<b>Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US</b>". Has anyone faced the problem, can anyone please help to remove this runtime error.
    Related Link: <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d28a67b-0c01-0010-8d9a-d7e6811377c0">Enhancing Customer Reports with Commands and Parameters</a>
    Regards
    Poonam

    <i>True, the application property service is apparently not to be used for a real-life scenario</i>
    You can definitely use the application property service in production scenarios - it's used by other components in a standard KM install, i.e. out-of-the-box.
    <i>in our case it forced the server down with deadlocks. </i>
    This should definitely not happen! Did you get SAP support to take a look at this? Was it the most popular documents report that caused this, or some other custom code? There should be no such problem with this service, since it's been around for quite some time and in production use.
    <i>
    Even if the code sample is not to be used for real-life scenarios it could at least make use of something else than the application property service which isnt't optimal for this use.
    </i>
    The application property service is good for a lot of scenarios, so it is realistic to use in in real-life scenarios. The only time I have seen this approach (storing the number of hits on documents in the database) fail is in very high-load scenarios.
    <i>Could you provide me with a link to the documentation for the logging framework?</i>
    <a href="http://http://help.sap.com/saphelp_nw70/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a> on help.sap.com and <a href="https://help.sap.com/javadocs/NW04S/current/en/index.html">Logging and Tracing API (J2EE Engine API)</a> for NW 7.0.

  • Connect jasper report with swing

    hai
    can any one tell me how to connect jasper report with swing plz.
    Thanks in advance.

    Thanks for your reply
    i tried the code you gave. but i get following error during runtime
    java.lang.NoClassDefFoundError: org/apache/commons/javaflow/bytecode/Continuable
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
         at Report.runReport(Report.java:35)
         at Report.main(Report.java:47)
    Exception in thread "main" & this is the code i used
    import java.sql.*;
    import net.sf.jasperreports.view.JasperViewer;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.JasperReport;
    import java.io.File;
    import java.io.OutputStream;
    public class Report {
         public static Connection connectDB() {
              Connection jdbcConnection = null;
              try {
                   Class.forName("com.mysql.jdbc.Driver");
                   jdbcConnection = DriverManager
                             .getConnection("jdbc:mysql://localhost/example?user=root&password=yspl");
              } catch (Exception ex) {
                   String connectMsg = "Could not connect to the database: "
                             + ex.getMessage() + " " + ex.getLocalizedMessage();
                   System.out.println(connectMsg);
              return jdbcConnection;
         public static void runReport() {
              try {
                   JasperDesign jasperDesign = JRXmlLoader
                             .load(new File("F:\\Reports\\testReport.jrxml"));
                   JasperReport jasperReport = JasperCompileManager
                             .compileReport(jasperDesign);
                   Connection jdbcConnection = connectDB();
                   JasperPrint jasperPrint = JasperFillManager.fillReport(
                             jasperReport, null, jdbcConnection);
                   JasperViewer.viewReport(jasperPrint);
              } catch (Exception ex) {
                   String connectMsg = "Could not create the report "
                             + ex.getMessage() + " " + ex.getLocalizedMessage();
                   System.out.println(connectMsg);
         public static void main(String[] args) {
              runReport();
    }why i occurs please tell me
    anticipating for your reply
    Thanks once again

  • Add Image to Jasper Report with Struts 2 and Hibernate

    Hi I want to add image to jasper report[pdf] in the environment of Struts 2 framework and hibernate. I am trying
    this for last couple of days, but i am unable to get the work done. if any body know the steps to add image to
    jasper reports, please help me or if u have any tutorials please let me know. I am using iReport-nb-3.5.0 to generate jasper files.
    Thanks in advance

    Finally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
    So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work

  • Reports with jsp and excel?

    Hello all..
    I'm Struggling with my application when i need reports.. i use jsp and servlets. How can i build reports and load them into a excel spreadsheet?
    PD: i dont have time to work with jasper reports.. :/ so if there's a faster and easier solution please let me know!
    Thanks.

    JExcel and POI are commonly used

  • With holding tax report with material and qty fields

    Dear All,
    Is there any standard report available with with holding tax data with material and qty fields.
    Thanks,
    Sekhar.

    dear Friend,
    Withholding tax will deduct on services. Hence Material and quantity is not relavent.
    There is no report is available also.
    reg
    Madhu M

  • Material wise reciept and Issue report with Opening and Closing Stock

    Hi
    I need a report,Material wise Receipt and issue with Opening and Closing stock.Is there any standard report available in SAP ?
    Or we have to go for Customised Report.
    Please reply

    Hi,
    MB5B gives total receipts - if i click on the receipts i can view the multiple material documents - BUT is there any way to drill down the reciepts or view the breakup of the receipts on the same screen OR is there any other report for this.
    Regards,
    Laxmi

  • Discoverer report with parameters and functions

    I am new to Discoverer. Is there a way to create a report (with parameters) of one line per customer such that the following data will be displayed for each customer?
    Among the parameters is: from_date (month & year) ,to_date
    The basic query gives totals for each date (month & year) for every customer.
    Among the fields displayed:
    1-customer_id,
    2-balance until from_date,
    3-total activity between from_date and to_date
    I have a function to calculate the total balance until from_date, but then I cannot get the total activity on the same line. I tried using another function and I tried using a total calculation but to no success.
    Is this possible?
    Thanks.

    Hi Markus
    You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
    Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
    Best wishes
    Michael

  • Consingment stock report with values and periods..

    hello guys,
    i have an issue here.. consignmet stock are "managed" within SD. Is there a standard report which cointains info about consigment stock, its amounts (values) and periods ?
    Main point here - consingment stock is processed within SD, so for example t.code MB54 is not useful here .
    Thanks guys !
    Best regards,
    Laimonas

    Hi......MB54 wont help since that shows the Vendor consignment stocks.
    Use MB52 creatively like this.
    Goto MB52
    Put your plant name.
    In the section 'Selection : Special stock', Mark the check box and put 'W' in Special Stock indicator.
    Choose the other settings as per your choice.
    Execute.
    Now you will see a whole lot of stocks along wioth the Consignment stocks. If you only want to see the consignment stocks, do like this
    In the list, put you cursor on the column 'S' which is special stock (i think the 4th colm in the list). Now choose the filter icon and put the filter criteria a 'W' i.e. customer consignment stock.
    You can save this is a variant with a name, say /ZCONS.
    Now come back to the initial MB52 screen. In the bottom section for display options, put this variant name in the field Layout.
    So now when you next run the report with this variant, you will only get the customer consignment stocks with their values.
    Hope this helps.

  • Create Report with CR4E and XML Data Source

    Hi all,
    I have a problem when create a report with CR4E that should use a XML data source. It is not possible to choose fields from the field explorer, because ther are no fields from the XML-file. Is there a general problem when using an ODA data source in CR4E?  At the moment I can only create reports with a database as data source.
    Please help me with a tip.
    Thanks
    Arnold

    Hi,
    After Installing CR4E Version 2  the code snippet for creating a XML-report not works as JSP. Has anywhere a hint to resolve the problem or a complete JSP-file?
    reportClientDocument = new ReportClientDocument();
    java.lang.NoClassDefFoundError: com/crystaldecisions/reports/common/data/CrystalResultSet
         com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.<init>(Unknown Source)
         org.apache.jsp.XMLDataSource_jsp._jspService(XMLDataSource_jsp.java:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Thanks
    Arnold Meier

  • Custom report with  FAGLFLEXA and "Document type"

    We have new GL and we must do a custom report like this:
    Hierarchy of ProfitCentre ______Credit for mm.yyyy___ Debit for mm.yyyy 
    Profit centre 1_____________________ c1_______________d1
    Profit centre 2_____________________ c2_______________d2
    ect. ....
    The value of c1 is the sum of monthly credit for a profit centre, for a group of accounts, but only for certain "document type".
    The "Document type" is what worries me.
    I have already written a similar report with Report Painter, reading data from the table FAGLFLEXT (0FL library), but took the full credit from the account (for all "document type"), without restrictions on the document type (the table  FAGLFLEXT not contain the field "document type").
    The data I need in my report, I can see with T. FAGLB03. Double-clicking on, for example, the value of credit you go into detail, and data can be selected for different "Document type". I still do not understand how it works and which tables use the T. FAGLB03 to have these data in detail.
    Please, help me what exactly to do?My questions are these?
    My principals questions are these:
    1 . I think, inevitably, i have to link two tables: FAGLFLEXA (the one with the given to him) and GKFP that contains the field BLART (Document Type). This is the right way? Is there another way?
    2 This report can be create with one of SAP tools: Report Painter, SAP Query, ... or the only solution is to write a program in ABAP?
    3.  If i'm not asking too much, you could give me a step-by-step description of how i should proceed?
    All suggestions are welcome.
    Thank you in advance. Many points to assign who will help me to solve this problem

    I know PowerShell can help you with the Get-SCSMRelatedObject command but you would have to write a small script to get that to work en mass.
    http://smlets.codeplex.com/

Maybe you are looking for

  • My music won't sync from computer to ipod

    My music( 234 songs, no videos or movies) won't sync from my computer to my ipod. This is really annoying and I had 42 songs on my ipod, knew I was missong 90 or so songs, synved it and checked my ipod...19 songs. I was so annoyed. It is not about sp

  • How do you make a photo b&w with a subject in color?

    I can not figure out how to turn a picture into black and white and still have the main subject in the picture in color, can anyone help me?

  • Directory Admin server fail to start

    Hello, When trying to start the directory admin server I get this error: SunONE-WebServer-Enterprise/6.0SP3 B05/14/2003 17:58 failure: server initialization failed (Interrupted system call)The admin error logs this: [08/Aug/2005:13:55:42] info (28523

  • ABAP on iPad 2

    Hi all ... Has anyone tried installing a SAP Logon Pad on iPad 2 and do ABAP on it? If you do how does it feel? I just finish my project... nothing to do... drank my coffee... and all sort of ideas creeping out of my mind... don't know if i am suffer

  • Help on item state please?

    I am relatively new to APEX and am struggling to get to grips with the initialisation of variables from screen to screen and probably need to understand the concept of the session state of these variables more. Would anybody be kind enough to point m