Two Laptop Bag
The moose likes Servlets and the fly likes automatic running of JSP or servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "automatic running of JSP or servlets" Watch "automatic running of JSP or servlets" New topic

automatic running of JSP or servlets

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
I have seen an ASP page which works something lik this
it checks the systemdate daily and compares it with the database where there r a list of birthdates and email ids.
on any matching date it sends birtday greetings to the
corresponding email ids. Mind u this asp page is not specifically invoked by anybody daily. it runs automatically.
how to acheive something lik this in JSP or servlets

Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i
khudiram Barik

Joined: Feb 12, 2001
Posts: 17
JSP and Servlets are more or less same. To do server side work and generate html generally we use servlets. For automatic works to be done, you can rather do in a simple java program.
Put this java program in a automatic.bat file and
call this bat file from your server bat file I mean when you start your server you must be using some kind of startup.bat.
Hope this helps.
I agree. Here's the link:
subject: automatic running of JSP or servlets
It's not a secret anymore!