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?
What I am trying to say is that the width attribute of the tables does not seem to work when the table is generated by servlet. I have a very long text insert the table cell. I find that if I create the table by writing the html page manually, the table maintained its width of 200 and the text got wrapped round. However if the table is generated through a servlet, the text flow out of the screen to the right.
Originally posted by Mark Leong: 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?
out.println("table width='200'"); ----------------- hope it works
Thank Folks who <b>Make Sense</b> here.<br />SCJP Platform 2