Hello all, I'm a beginner. I want to display a message "No matching records found" and having difficulty. This is my code that I need to modify to display such message...
I know that I need a code similar to this:
but so far my attempts failed miserably. I would greatly appreciate any of your help. Thank you. Katia. [ Edited to remove long lines. Please don't post long lines of code in a code block. Thanks -ds ] [ October 10, 2002: Message edited by: Dirk Schreckmann ]
It would be a lot simpler if you construct the table contents with a StringBuffer first and then write into the PrintWriter object. Also a lot efficient. That way, you check if the StringBuffer is empty to display your "no data found" message instead. Moreover, I notice that you are specifying font size for every column in every row. That is not neccessary. You can move the font declaration to the table or above it. ADDED LATER - after looking thru your code again, I find a StringBuffer was used and is getting displayed. You seem to be on the right track. why did you opt out of this approach? [ October 11, 2002: Message edited by: Vin Kris ]