>Is there any way to make a servlet call itself automatically. I want a >servelt to ru nlat every nite to query a database and send Emails if there >is new information in the database. Whats the easiset way to have a servlet >call itself? I don't think there is a standard way to do that. The idea of a servlet is to be triggered by a user or another servlet, generate html code and send it to a browser... not to be triggered at a certain time and perform some non-html related action. So it will be very hard to make something like that and make it work correctly. That doesn't mean it's not possible, of course. You could try to create some timer object, that checks the time and triggers servlets when it needs to. But there will be some problems you'll have to work out. Arjan Houtman Antares Informatisering [EMAIL PROTECTED] ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
