• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does this make any sense to anyone??

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic