I tried a loop in the servlet but it doesn't work.  I get the IOException
class servlet not found.  I thought that putting a loop around your query
would make logical sense because the query itself works but looping it
doesn't.  Do you think because I'm using JDBC and a loop there's some
interference somewhere?

Hi willard,

I think instead of continuously making queries from applet to servlet, it
will
be better if u put a loop in servlet to execute same query for updated data
in
some time intervals & start this loop when user first see this page. Then
servlet will continuously go on sending data to applet & applet will just
read
the data. servlet will stop this loop if user wish to stop & send that
request
to servlet.

We can do it using URL & URLConnection class.
1. Make a conenction to ur servlet using URL & URLConnection.
2. Get date & time of the content or u can use getLastModified().
3. See that the content is modified & then using getInputStream() method
read
the data from the URL COnnection.
4. Make servlet send the data to this URLConnection.

Thanks,

Vijay

___________________________________________________________________________
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