Class java.servlet.html.HtmlPage
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.servlet.html.HtmlPage

java.lang.Object
   |
   +----java.servlet.html.HtmlContainer
           |
           +----java.servlet.html.HtmlPage

public class HtmlPage
extends HtmlContainer
This is a Container for a whole html page that takes care of some of the standard html tags on a page.

Constructor Index

 o HtmlPage(String)
Create page with specified title.
 o HtmlPage(String, String)
Create page with specified title and header tags.

Method Index

 o setBodyAttributes(String)
Set attributes of <BODY> tag.
 o toString()
Output container as String.
 o write(OutputStream)
Write html for page to OutputStream.

Constructors

 o HtmlPage
  public HtmlPage(String pageTitle)
Create page with specified title.
Parameters:
pageTitle - title of the html page
 o HtmlPage
  public HtmlPage(String pageTitle,
                  String headerTags)
Create page with specified title and header tags.
Parameters:
pageTitle - title of this page.
headerTags - comma delimited String of other tags to embed in the head of this document.

Methods

 o setBodyAttributes
  public void setBodyAttributes(String attribs)
Set attributes of <BODY> tag.
Parameters:
attribs - Attributes to set for the body tag.
 o write
  public void write(OutputStream out) throws IOException
Write html for page to OutputStream.
Parameters:
out - OutputStream to write to.
Overrides:
write in class HtmlContainer
 o toString
  public String toString()
Output container as String.
Overrides:
toString in class HtmlContainer

All Packages  Class Hierarchy  This Package  Previous  Next  Index