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

Report File location

Hi,

Where does the java reporting component(JRC) look for the report source in case the CRConfig file is not present in the classpath?

Regards,

Anushree

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 03:19 PM

    Hello Anushree,

    -When creating a report source using the Java Reporting Component, the report's path can be specified by using either a relative or absolute path.

    -When using relative paths, the path is specified relative to the location of the Java Reporting Component on the web server. For example, ../reports/sample.rpt resolves to /WEB-INF/reports/sample.rpt where the Java Reporting Component JAR file is in /WEB-INF/lib. The value of the reportlocation tag becomes the new root directory that is used to determine the location of a report.

    -If the reportlocation tag is not present, the Java Reporting Component uses absolute paths.

    -When using absolute paths, the Java Reporting Component will also look in the location of your web application's resources. For example, you can place your report into the classes folder and then specify the name of the report directly in your JSP file (with no path). In this case, the Java Reporting Component will find the report.

    -To use absolute paths, ensure that the CRConfig.xml file does not contain a reportlocation tag.

    Thanks,

    Chinmay

    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.