The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
[Originally posted by brownale2k]

Listing 9.1 on page 195 (printQuery.jsp) of the "JSTL in Action" book by
Shawn Bayern (copyright 2003):

If the table you are trying to query is empty (has no data at all), the
example displays a blank page. If the table has at least one row in it, the
example works fine.

It would be better if the example were updated to always display the column
headers and display a special message that says "(The table has no data.)"
when there is no data available.