I am using net.sf.jasperreports.xml.source to get xml file from remote server. How to pass the same file to subreport? If I provide net.sf.jasperreports.xml.source in the subreport then xml file is read from the remote server but it is making a new server call, not reading the same xml file of main report. How to use the output of net.sf.jasperreports.xml.source from main report to subreport so that remote server is not called in subreport? value of net.sf.jasperreports.xml.source is dynamic like '"http://".concat($P{url}