Thanks Adeel and Nelson,
I think i have got a solution by using a variable in the while loop to count the number of times it get executed, thus if the number is zero i displayed a "Record not found" message. Otherwise the table gets built.
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?
Also what would "VO" and "TO" stand for. I have just started learning jsp and i am looking for good guidlines to follow (coding conventions etc.)
The code that i have produced now is as follows:
Sorry for posting so much code but i have made chages to various parts of the jsp file.
Thanks again for everyones help
Talhah Mafawalla
[ April 09, 2007: Message edited by: Talhah Mafawalla ]
[ April 09, 2007: Message edited by: Talhah Mafawalla ]