Announcement Announcement Module
Collapse
No announcement yet.
Jasper report loading and Quartz Jobs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jasper report loading and Quartz Jobs

    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

  • #2
    I found a classical solution but no so bad

    Code:
    ClassLoader classloader = Thread.currentThread().getContextClassLoader(); 
    InputStream inputstream = classloader.getResourceAsStream(localisationReports+"/"+reportName);
    Hope it will help others,

    Fabien

    Comment

    Working...
    X