james.perry
-
Posts
4 -
Joined
-
Last visited
Community Answers
-
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]]'