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.
-
HtmlPage(String)
- Create page with specified title.
-
HtmlPage(String, String)
- Create page with specified title and header tags.
-
setBodyAttributes(String)
- Set attributes of <BODY> tag.
-
toString()
- Output container as String.
-
write(OutputStream)
- Write html for page to OutputStream.
HtmlPage
public HtmlPage(String pageTitle)
- Create page with specified title.
- Parameters:
- pageTitle - title of the html page
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.
setBodyAttributes
public void setBodyAttributes(String attribs)
- Set attributes of <BODY> tag.
- Parameters:
- attribs - Attributes to set for the body tag.
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
toString
public String toString()
- Output container as String.
- Overrides:
- toString in class HtmlContainer
All Packages Class Hierarchy This Package Previous Next Index