aspose file tools*
The moose likes Servlets and the fly likes Does this make any sense to anyone?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Does this make any sense to anyone??" Watch "Does this make any sense to anyone??" New topic
Author

Does this make any sense to anyone??

Tom Caldwell
Ranch Hand

Joined: Oct 09, 2000
Posts: 39

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

Joined: Feb 23, 2001
Posts: 27
I guess it probably either your database format has problem
or you try to clean up the ResultSet.
Tom Caldwell
Ranch Hand

Joined: Oct 09, 2000
Posts: 39
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does this make any sense to anyone??