| 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
|
 |
 |
|
|
subject: execute jsp files automatically
|
|
|