Hamid,

You really should always test to see if your result set has records or
not.  What exactly are you doing with it? Maybe if the result set is
empty (or whatever) give some type of message . . .


----- Original Message -----
From: Isaac Shabtay <[EMAIL PROTECTED]>
Date: Wednesday, April 4, 2001 2:19 pm
Subject: Re: Oracle:jdbc problem

> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and
> > reference [mailto:[EMAIL PROTECTED]]On Behalf Of Hamid
> > Sent: Friday, March 02, 2001 10:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Oracle:jdbc problem
>
> > 2) Some queries r returning no results so giving nul pointer
> exception .
>
> Wrong. A "select" query which returns no rows causes an empty
> resultset to
> be returned,
> not a null pointer.
>
>
>        - Isaac
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-
> INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to