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

james.perry

Members
  • Posts

    4
  • Joined

  • Last visited

Community Answers

  1. james.perry's post in Determine HTTP/HTTPS protocol at runtime? was marked as the answer   
    Create a parameter called something like PROTOCOL and drop this expression in it.

    $P{JASPER_REPORT}.getProperty("ireport.jasperserver.url" ).split( ":" )[0]

    This will give you either HTTP or HTTPS depending on how the user is accessing the platform.

    Then alter any hardcoded URLs to include $P{PROTOCOL}.

    e.g.  <![CDATA[$P{PROTOCOL}://localhost:8080/blah/blah/blah]]'
×
×
  • Create New...