mulcamd Posted May 3, 2012 Share Posted May 3, 2012 How can I determine if a report is run from the JasperReports Server? Background. When running a report in iReport I can use JOptionPane.showMessageDialog to show a message to the user. In JasperReports Server this gives an error.So before showing the message I want to check if the report is run from JasperReports Server. See als my question:jasperforge.org/plugins/espforum/view.php Link to comment Share on other sites More sharing options...
Ching Ice-creaming Posted May 3, 2012 Share Posted May 3, 2012 http://docs.oracle.com/javase/6/docs/api/javax/swing/JOptionPane.htmlJOptionPane.showMessageDialog comes from Java Swing. It cannot run at serverside web applications unless you make it as Java applet. Link to comment Share on other sites More sharing options...
mulcamd Posted May 5, 2012 Author Share Posted May 5, 2012 Thanks, yes I figured that out. Thanks for the link. Yet my question is still unanswered: is there a way to determine in a scriptlet if the report is run in the JasperReports Server of locally in iReport?Post Edited by mulcamd at 05/05/2012 14:26 Link to comment Share on other sites More sharing options...
mulcamd Posted May 14, 2012 Author Share Posted May 14, 2012 Has anyone a good glue? Link to comment Share on other sites More sharing options...
rw-network Posted February 11, 2013 Share Posted February 11, 2013 If the JasperServer runs on a different OS you could try something like this:( System.getProperty("os.name").equals("OS/400") ? "/reports/templates/images/Logo1_noTag.png" : "H:\Jasper\Logos\Logo1_noTag.png" ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now