Click to See Complete Forum and Search --> : Table with servlet


MarkLeong
08-20-2002, 01:38 AM
I am using servlet to generate a table:-

out.println("<form>");
out.println("<table width=200>");

do something here......

out.println("</table>");
out.println("</form>");

Somehow the width=200 does not seem to work.

When I use pure html, it works perfectly.

Anybody has the same experience?

dfx
08-21-2002, 02:15 PM
Check the html source in your web browser (or "download" the page with wget or something). Make sure the html is correct. Also check the contents of the table, a missing closing </tr> tag or something can mess things up in certain browsers.

MarkLeong
08-22-2002, 01:04 AM
Thanks for help.

I found out that the problem was due to a <pre></pre> tag within the cell of the table. Removed it and everything is OK.