File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Alert message for every 2mins in Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Alert message for every 2mins in Servlet" Watch "Alert message for every 2mins in Servlet" New topic

Alert message for every 2mins in Servlet

chandraiah chintakayalu
Ranch Hand

Joined: Aug 30, 2007
Posts: 32
Hi all,
I want a servlet which display a alert message(like reminder) for every 2mins.
can anybody helps me is it possible in servlet

Thanks in advance.
[ August 31, 2008: Message edited by: chandraiah chintakayalu ]

SCJP-5 86%,SCWCD-soon
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Servlets can't "push" data out to clients, since they are designed to support HTTP, which is a request driven technology. You are best using some client side technology like JavaScript or an Applet.
[ September 01, 2008: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
wood burning stoves
subject: Alert message for every 2mins in Servlet
Similar Threads
problem while refreshing page
refreshing problem
How to give alert message in servlet and redirected it to jsp page.
regarding jsp and servlet
How to validate HTML form using servlet