• 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

Html error???

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I'm having a strange html type error. The code below is the result of a servlet and works fine if there is only one line BUT if you repeat the lines from <FORM ... to </FORM> about 300 times which is what my servlet does and then view it in IE, not netscape, the table starts about halfway down the page. How can this be?
I'd be forever grateful if anyone tell me why?
-------
<FORM name='queryForm' ACTION=runservlet METHOD=POST>
<INPUT type='hidden' name='v1' value='abcdefg'>
<tr><td>123456</td></tr></form>

Thanks for any help
[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
Your generated HTML doesn't seem very sensible. It is normal practice to start the form and the table once, then for each element just put out a <tr><td>....</td></tr>. generating a separate form for each element seems crazy.
The reason why you are getting a lot of blank space before your table is that you have the <input> tag and its surrounding spaces outside the table cell, so they are all grouped together before the table when it is displayed. Putting the <input> between the <td> and </td> should fix that.
 
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
Thanks Frank,
I didn't see that, and I was getting ready to do a major rewrite if I didn't find it soon.
 
Frank Carver
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
No problem. Glad to help.
 
Poop goes in a willow feeder. Wipe with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic