Hello,
I guess it doesn't show up in a web application, cuz it fails to load the subreport .jasper file. A simple solution to such problem is to create the absolute path (to a common point) as a parameter in the master report. Then pass it to the subreport.
In your web application, u can use the getRealPath method as follows:
String realPath = getServlet().getServletContext().getRealPath(path);
where the path is the report directory path relative to the context root of ur web application (typically a subdirectory of the public_html )
where the path is the report directory path relative to the context root of ur web application (typically a subdirectory of the public_html )
Hope that helped
M. Baddar
Meenakshi Singh <[EMAIL PROTECTED]> wrote:
Meenakshi Singh <[EMAIL PROTECTED]> wrote:
hi all,
I have a report with a subreport. If I give the relative path for the
subreport _expression_ in the maste r report, the subreport doesn't show up.
Whereas if I give an absolute path like c:\\proj\\reports\\subreport.jasper,
it works.
Would you please tell me how I can use the relative path like
\\reports\subreport.jasper in the subreport _expression_.
Thanks & Regards,
Meenakshi
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jasperreports-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
__________________________________________________
Do You Yahoo!?
Tired
of spam?
Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
