# com.bea.wlw.netui.tags.html
Html Class

public class Html
extends `ScriptContainer`
implements `ErrorReporter`

Generates the html element and performs error handling within its body.

Attribute Descriptions
Attribute | Required | Runtime Expression Evaluation | Data Bindable
--- | --- | --- | ---
dir | No | No | No
The direction of the HTML, left-to-right (LTR) or right-to-left (RTL).
useLocale | No | No | No
A boolean specifying whether the html output should include `xml:lang=defaultLocale.getLanguage()`.

Hierarchy
  `Object`
  `TagSupport`
  `BodyTagSupport`
  `AbstractBaseTag`
  `ScriptContainer`
  `Html`

All Implemented Interfaces
  `BodyTag`, `ErrorReporter`, `IterationTag`, `ScriptReporter`, `Serializable`, `Tag`

## Field Summary

`public static final `String`` | `HTML_TAG_ID` String

Fields from com.bea.wlw.netui.tags`.`AbstractBaseTag``
``ATTR_GENERAL`, `ATTR_GENERAL_EXPRESSION`, `ATTR_JAVASCRIPT`, `ATTR_STYLE`, `CLASS`, `ID`, `JAVASCRIPT_STATUS`, `NAME`, `NETUI_UNIQUE_CNT`, `ONCLICK`, `ONDBLCLICK`, `ONKEYDOWN`, `ONKEYPRESS`, `ONKEYUP`, `ONMOUSEDOWN`, `ONMOUSEMOVE`, `ONMOUSEOUT`, `ONMOUSEOVER`, `ONMOUSEUP`, `STYLE`, `TABINDEX``

Fields from javax.servlet.jsp.tagext`.`BodyTagSupport``
`bodyContent`

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`BodyTag``
`EVAL_BODY_BUFFERED, EVAL_BODY_TAG`

Fields from interface com.bea.wlw.netui.tags`.`ErrorReporter``
``CONTAINER_ERRORS``

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

Html()

## Method Summary

`public void` | `addError`(`AbstractPageError` ape) Add an error to the errors being reported by this tag.
`public int` | `doAfterBody`() Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.
`public int` | `doEndTag`() Write out the body content and report any errors that occured.
`public int` | `doStartTag`()
`public `String`` | `getDir`() Gets the dir value of the html.
`public int` | `getNextId`() This method will return the next unique integer within the scope of this tag.
`public `String`` | `getTagName`() Returns the name of the Tag.
`public boolean` | `getUseLocale`() Gets whether the default locale's language should be used.
`public boolean` | `isReporting`() This boolean indicates if an ErrorReporter is reporting errors or not.
`protected void` | `localRelease`() Release any acquired resources.
`public `ArrayList`` | `returnErrors`() Return an ArrayList of the errors
`public void` | `setDir`(`String` dir) Sets the dir value of the html.
`public void` | `setUseLocale`(boolean locale) Sets whether the default locale's language should be used.

Methods from `com.bea.wlw.netui.tags.html.`ScriptContainer``
``addScriptCode`, `addScriptFunction`, `addTagId`, `getScopeId`, `nextTagIdRef`, `processIdMap`, `replaceTagNameRefs`, `resolveTagIdRef`, `setScopeId`, `writeScriptBlock``

Methods from `com.bea.wlw.netui.tags.`AbstractBaseTag``
``addTagIdMapping`, `evaluateAttributeToString`, `filter`, `filter`, `getJavaScriptUtils`, `getNearestForm`, `getScriptReporter`, `getTagName`, `getUserLocale`, `localRelease`, `registerTagError`, `release`, `renderAttribute`, `rewriteName`, `write``

Methods from `javax.servlet.jsp.tagext.`BodyTagSupport``
`doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent`

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`BodyTag``
`doInitBody, setBodyContent`

Methods from interface `com.bea.wlw.netui.tags.`ErrorReporter``
``addError`, `isReporting`, `returnErrors``

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `com.bea.wlw.netui.tags.`ScriptReporter``
``addScriptCode`, `addScriptFunction`, `addTagId``

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### HTML_TAG_ID

    public static final String HTML_TAG_ID

## Constructor Detail

### Html

    public Html()

## Method Detail

### addError(AbstractPageError) Method

    public void addError(AbstractPageError ape)

Add an error to the errors being reported by this tag.

#### Parameters

ape
  - The AbstractPageError to add

### doAfterBody() Method

    public int doAfterBody()
         throws JspException

Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.

Overrides
  `ScriptContainer.doAfterBody()`

#### Exceptions

``JspException``
  if a JSP exception has occurred

### doEndTag() Method

    public int doEndTag()
         throws JspException

Write out the body content and report any errors that occured.

Overrides
  `ScriptContainer.doEndTag()`

#### Exceptions

``JspException``
  if a JSP exception has occurred

### doStartTag() Method

    public int doStartTag()
         throws JspException

Overrides
  `ScriptContainer.doStartTag()`

#### Exceptions

``JspException``

### getDir() Method

    public String getDir()

Gets the dir value of the html.

#### Returns

"LTR" or "RTL"

### getNextId() Method

    public int getNextId()

This method will return the next unique integer within the scope of this tag.

#### Returns

a unique integer

### getTagName() Method

    public String getTagName()

Returns the name of the Tag.

Overrides
  `ScriptContainer.getTagName()`

### getUseLocale() Method

    public boolean getUseLocale()

Gets whether the default locale's language should be used.

#### Returns

true or false

### isReporting() Method

    public boolean isReporting()

This boolean indicates if an ErrorReporter is reporting errors or not. The caller should check this before calling addError because the ErrorReporter may be off for some reason.

#### Returns

a boolean indicating if the tag is reporting errors or not.

### localRelease() Method

    protected void localRelease()

Release any acquired resources.

Overrides
  `ScriptContainer.localRelease()`

### returnErrors() Method

    public ArrayList returnErrors()

Return an ArrayList of the errors

#### Returns

an `ArrayList` of all errors.

### setDir(String) Method

    public void setDir(String dir)

Sets the dir value of the html.

#### Parameters

dir
  - "LTR" or "RTL"

### setUseLocale(boolean) Method

    public void setUseLocale(boolean locale)

Sets whether the default locale's language should be used.

#### Parameters

locale
  - true or false