com.bea.web.tag
Class TextTagSupport
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.bea.web.tag.AbstractInputTagSupport
com.bea.web.tag.TextTagSupport
- All Implemented Interfaces:
- IterationTag, Serializable, Tag
- public class TextTagSupport
- extends AbstractInputTagSupport
- implements Serializable
Provides the rendering logic for an HTML form field that accepts text
values only. In addition, each instance of this class uses an instance of
com.bea.web.validation.Word
to perform runtime
validation of the value for this field. This class places a Word
instance in application scope, i.e. accessible via the ServletContext object.
The ServletContext is shared by all servlets in a Web application.
Consequently, the controller servlet can access the Word to validate
user input passed in the HTTP request for this form field.
- See Also:
- Serialized Form
Constructor Summary |
TextTagSupport()
Default constructor, all subclasses of
javax.servlet.jsp.tagext.TagSupport are required to only
define a public constructor with the same signature, and to call the
superclass constructor. |
Methods inherited from class com.bea.web.tag.AbstractInputTagSupport |
getAttrs, getDefault, getMaxlength, getName, getSize, isRequired, printError, setAttrs, setDefault, setMaxlength, setName, setRequired, setSize |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextTagSupport
public TextTagSupport()
- Default constructor, all subclasses of
javax.servlet.jsp.tagext.TagSupport
are required to only
define a public constructor with the same signature, and to call the
superclass constructor.
setPattern
public final void setPattern(String strPattern)
doStartTag
public int doStartTag()
- Prints the tag to the JSP writer.
- Specified by:
doStartTag
in interface Tag
- Returns:
javax.servlet.jsp.tagext.Tag.SKIP_BODY
to indicate to
the tag handler to skip body evaluation.
release
public void release()
- Resets the internal state of this instance. This is called after this tag
has rendered itself in the
doStartTag
method. This is needed
because the tag handler will reuse this instance for every int tag on the
page.
- Specified by:
release
in interface Tag
- Overrides:
release
in class AbstractInputTagSupport