File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Is it possible ? Schedule + Run a report Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is it possible ? Schedule + Run a report" Watch "Is it possible ? Schedule + Run a report" New topic

Is it possible ? Schedule + Run a report

matias casal
Ranch Hand

Joined: Oct 18, 2009
Posts: 61
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)

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29219

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.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Deepak Bala

Joined: Feb 24, 2006
Posts: 6657

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

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
matias casal
Ranch Hand

Joined: Oct 18, 2009
Posts: 61
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!
subject: Is it possible ? Schedule + Run a report
Similar Threads
is there any way to make this without static ?(this time i give up again)
Problem to instainte inner class in org.quartz
Quartz problem!
Problems with Quartz PlugIn for Struts
Scheduling job.