Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Record not found error

RaakhApr 30 2007 — edited May 1 2007
I am trying that when no record found then page not found should appear but unable to do it plz see my code and advice
Thanks & Kind regards
PreparedStatement ps1=cnn.prepareStatement(sql);
	ps1.setString(1, product);
	ps1.setString(2, startDate);
	ps1.setString(3, endDate);
	rs=ps1.executeQuery();
	while(rs.next()){
	id=rs.getInt(1);

	if(id<1){
	out.println("No Record Found");
	}else{
                    out.println("Record found");
                     }
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2007
Added on Apr 30 2007
2 comments
213 views