Rajeshwar Rao Vadheraju wrote:
>
> How can I write a servlet which gets some results from Database
> for every 5 mins and diplays them on Browser?
>

 I'm assuming you mean you want to "push" data out to
the user's browser once every 5 minutes? That's hard,
because generally how it works is that the browser is
the one that requests data from the server.

 Try checking the archives using keywords like "browser
push" and "equiv refresh" for some hints.

 You'll find (discussed in much greater detail in the
archives and in books and at various web sites you can
easily find using google) that you can either:

 a) Ask the browser to reload periodically from a
    particular URL. In this case, you'd tell the
    browser to reload once every 5 minutes. Not
    all browsers allow this, though.

 b) Write an applet that sets up a connection to
    your server and waits for 'pushed' data. Applets
    can be hard to deploy, though.

 But, like I said, check the archives for more details
and more ideas.

 General note: If you don't know the answer, or don't
understand the question, it's better to say nothing or
state very clearly that you're guessing. Personally,
I'd be careful about all the answers in this thread.


-cks

___________________________________________________________________________
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

Reply via email to