Hi,
I am working on a project deals with
Struts, I'm using JasperReport to generate the report. In the .jsp file i'm using the below code to call the jasper file.
JasperPrint jasperPrint = JasperFillManager.fillReport("D:\\EclipseWorkSpace\\MyProject\\WebRoot\\report\\Generate0100.jasper",params,conn);
I am deploying it in
TomCat server, I dont want to provide a path to access the file. Is there any way to do it.
If I give,
JasperPrint jasperPrint = JasperFillManager.fillReport("/report/Generate0100.jasper",params,conn);
The above is not working. Instead I am giving the whole link of location.
In my Production environment I am supposed to use only the .war file nothing more than that.
Please suggest your ideas.
FYI, I am creating this
thread with reference to
https://forums.oracle.com/thread/2572176
Thanks,
raka.