IntelliJ Java IDE
The moose likes JSP and the fly likes A question about html generated with servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "A question about html generated with servlet" Watch "A question about html generated with servlet" New topic
Author

A question about html generated with servlet

jhon masco
Ranch Hand

Joined: May 13, 2010
Posts: 82
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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ashish Agre
Ranch Hand

Joined: Jan 22, 2011
Posts: 31

Bear Bibeault wrote: In general, servlets should not generate HTML at all. They should forward to a JSP that creates the HTML view.


| B.E IT Final Year | SCJP 6.0 98 % |
 
 
subject: A question about html generated with servlet
 
Threads others viewed
Getting Page Source In The Servlet
Java program to produce a HTML page
Generating table with servlet
Creating an Image from Html Table.
get HTML code ???
IntelliJ Java IDE