Hi,
i need to load files(jasper report) from a quartz job. The files are in my web-inf/reports directory. What is the best way to do this ?
How can i pass or get the correct path to this file ?
Thanks,
Fabien
Hi,
i need to load files(jasper report) from a quartz job. The files are in my web-inf/reports directory. What is the best way to do this ?
How can i pass or get the correct path to this file ?
Thanks,
Fabien
I found a classical solution but no so bad
Hope it will help others,Code:ClassLoader classloader = Thread.currentThread().getContextClassLoader(); InputStream inputstream = classloader.getResourceAsStream(localisationReports+"/"+reportName);
Fabien