Skip to Content
author's profile photo Former Member
Former Member

dynamic xml datasource in Java (CR4E)

Dear all,

Is there any simple sample to show how to display rpt via dynamic XML datasource during runtime.

This is the current environment: jdk 1.6, crystal report xi, tomcat 5.5. Now I could new crystal report using XML datasouce when development. what I what is to modify the path of xml file in the JSP page.

I did a lot of search but with no luck. Result shows a lot of examples for database connection modification in runtime.

Best Regards

Rodney Huang

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Mar 02, 2015 at 04:59 PM

    HI Rodney

    I don't deal with Java at all, but maybe these sample apps will help:

    Java JRC Set Resultset Datasource | SCN

    CRJava Result Set Data Source | SCN

    CRJava POJO Data Source | SCN

    If not, I'll see about chasing someone down that will be able to help.

    - Ludek

    Senior Support Engineer AGS Product Support, Global Support Center Canada

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ludek Uher

      Dear Ludek,

      Just share one import note: in web project, we need to copy XMLConnector.jar into bin folder of TOMCAT. Otherwise we will meet exception about database connection loading which is another common question in the community.

      * XMLConnector.jar is included in crystal report java runtime.


      Have a nice day.

      Best Regards,

      - Rodney

  • Posted on Mar 02, 2015 at 02:35 PM

    Moved to Java SDK forum...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.