If there is no 'SQLException' caught while you are performing your
sqlstatement.executeQuery, you know that you have no problems in getting
your results set back. When you get a 'null' returned from your
resultset.next (), you know the data retrieval is complete.
Niranjan
-----Original Message-----
From: [Qari Qasim] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: Updating a Servlet
Here is a scenario:
A user enters a query and submits it to servlet. The servlet prints "thanks
for the visit, ur query is being dealt with". At the same time the servlet
is accessing a database and searching for user's query. Then the servlet
updates itself with the information from the database.
My real question is that how can a servlet update itself. For example, how
would it know that it has retrieved data from the database.
Would I need to use respond.setHeader(....) method.
Thanks
Qasim
___________________________________________________________________________
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
___________________________________________________________________________
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