I tried to somehow count the returned record count from the resultset and if the count was zero display the error, but had no luck there either
apigee, a better way to API!
Which forces the compiler to throw an error when there is no records in the record set.
apigee, a better way to API!
i think therefore i am
Originally posted by nelson christos:
so before you go into the loop check whether there is a row
in the resultset and if not there display the message.
Originally posted by Talhah Mafawalla:
Though Adeel would the reason you recommend not using scriptlets/Java code in JSPs and DB stuff in JSPs because of security reasons?
Should the database stuff go into a java class to get executed a then only return a result(e.g. I have a class that handles the database connection either for MySQL or Access by passing to it a string and it returns a Connection). Would this be what you are talking about?
Don't get me started about those stupid light bulbs. |