• Post Reply Bookmark Topic Watch Topic
  • New Topic

A question about html generated with servlet

 
jhon masco
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Friends
Long time ago I had a problem with a html table generated with servlet, It show me a lot of white spaces (a blank space before the table).
I remember that there was an article that explain the cause of this, but i not found it now!.
My question is anybody know where is this article??
I want to share it with some friends that lamentably continue using this.

Gracias
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The appearance in the browser is entirely controlled by the HTML that is sent. So if it doesn't look like what you want, you need to find out what it is in the HTML that's wrong. Then fix the servlet to generate the correct HTML.

In general, servlets should not generate HTML at all. They should forward to a JSP that creates the HTML view.
 
Ashish Agre
Ranch Hand
Posts: 73
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote: In general, servlets should not generate HTML at all. They should forward to a JSP that creates the HTML view.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!