Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does this make any sense to anyone??

 
Tom Caldwell
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a JDBC servlet 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
 
jenny wang
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it probably either your database format has problem
or you try to clean up the ResultSet.
 
Tom Caldwell
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic