Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

automatic running of JSP or servlets

 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
khudiram Barik
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic