aspose file tools
The moose likes JSP and the fly likes execute jsp files automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "execute jsp files automatically" Watch "execute jsp files automatically" New topic
Author

execute jsp files automatically

Santosh Kumar
Ranch Hand

Joined: May 25, 2005
Posts: 30
hi

i wanted to execute jsp program automatically everyday at a particular time.
i mean how to run a jsp program in scheduler.
is that possible


waiting for your reply

regards
santosh
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
JSP/servlet works at request/response principle, so you must generate at the given time the request.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Santosh Kumar
Ranch Hand

Joined: May 25, 2005
Posts: 30
hi david

thanks for the info
i am begginer to the jsp/servlets
so can you be a bit specific about how can i go about it
help me out in solving th problem


waiting for your reply


regards
santosh
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I think David's point is that JSPs are not made to do that.
They are designed to wait for a request from a client (browser) and then respond to that request.

There are libraries out there (Quartz comes to mind) for cron like features from within your java application but you would want to put that functionality into plain old Java objects (POJOs) not JSPs.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: execute jsp files automatically
 
Similar Threads
Program That Automatically Intercepts The Request
Error
doubt in run the servlet in tomcat 5.5
Execute jsp code automatically at startup of server
Form Data not being populated in Struts 2