This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a JDBCservlet that displays the results of a Db2 query in the normal html <table> <tr> <td> etc form and all works fine. EXCEPT for if I enter a query that brings back a large number of rows then there are about 30 blank lines before the html table. - How can this be? when there are no blank lines in the "view source" of the results. - any ideas what to look for? I checked the </tr> type things - I'm stuck, I'll try anything. Thanks for any ideas
I guess it probably either your database format has problem or you try to clean up the ResultSet.
Joined: Oct 09, 2000
This error is caused by some html "hidden" values I have in the results of the query page produced by the servlet. When I remove them there are no spaces. Does anyone know why or what I can do to stop this. I use these because I'm calling a different program the lines look like > out.println("<INPUT type='hidden' name='v2' value='whatever'>"); ??? whats wrong with that in a servlet?? [This message has been edited by Tom Caldwell (edited February 26, 2001).]
As I replied in one of your other threads about this problem, it is because the <input> tags (and their surrounding spaces) are outside any of the table cells. Table behaviour is to gather together any odments which are outside cells and show them before the table. Putting your hidden fields inside the <td></td> cells should solve your problem.