RE: [OT] Empty Result Set

2003-06-26 Thread David Graham
; Sent: Wednesday, June 25, 2003 1:35 PM > To: Struts Users Mailing List > Subject: Re: [OT] Empty Result Set > > > boolean isEmpty = !rs.next(); > > David > > --- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote: > > Hey everyone, > &g

RE: [OT] Empty Result Set

2003-06-26 Thread Kamholz, Keith (corp-staff) USX
riginal Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:35 PM To: Struts Users Mailing List Subject: Re: [OT] Empty Result Set boolean isEmpty = !rs.next(); David --- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote: > H

RE: [OT] Empty Result Set

2003-06-25 Thread Jones, Ted
...or if you use executeQuery(), you could check to see if myResultSet == null before looping through it. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 12:35 PM To: Struts Users Mailing List Subject: Re: [OT] Empty Result Set boolean

Re: [OT] Empty Result Set

2003-06-25 Thread Mick Knutson
That should work fine. I usually do a while( result.next ){ process looping } --- Thanks... Mick Knutson --- From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Subject: [OT] Em

Re: [OT] Empty Result Set

2003-06-25 Thread David Graham
boolean isEmpty = !rs.next(); David --- "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]> wrote: > Hey everyone, > This isn't really a struts question, but it's applicable. I'm just > wondering how to find out if a ResultSet is empty or not after I execute > my > query. I've searched onli