Jump to content
Changes to the Jaspersoft community edition download ×
  • How to check if resource exists in TIBCO JasperReports® Server repository from a report

    Friendly User
    • Features: Repository Product: JasperReports® Server


    In the report for whatever reason, you need to check whether the resource exists in the TIBCO JasperReports® Server repository or not.


    There is an undocumented method to do that. It returns a boolean value:

    com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepositoryUtil.getThreadRepositoryContext().getRepository().resourceExists(null, "/path/to/resource")

    User Feedback

    Recommended Comments

    There are no comments to display.

    This is now closed for further comments

  • Create New...