• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is it possible ? Schedule + Run a report

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I am making and schedule job (quartz libraries) and I have the following doubt.

I have this code in a class which is load in a jsp page.


And the jsp


It works perfectly, but I would like to know if instead of in the execute method I could run something execute a web ( like a href)
src="report?report1&outputFormat=html


 
author & internet detective
Posts: 41936
910
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Matias,
You could open a UrlConnection in the execute method. Is the web page in the same application as the scheduler? If so, you could skip the URL and call the action directly.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that code sitting inside a JSP ? eek ! Never write code inside a JSP

And if you are looking for a reporting solution, have you considered crystal reports / Jasper / BIRT ? You could in theory run reports at regular intervals and export them in a variety of formats by opening a URLConnection
 
matias casal
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This code is in a servlet.
I am using pentaho reporting. Report designer 3.5. .prpt files.
I will try with the url connection
Thank you!
 
reply
    Bookmark Topic Watch Topic
  • New Topic