org.apache.taglibs.regexp
Class SubstituteTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.regexp.SubstituteTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class SubstituteTag
- extends javax.servlet.jsp.tagext.TagSupport
JSP Tag substitute, used to perform global
substitution of the provided text.
Outputs the new text with substitutions.
The attribute regexp must be set to the id of a regexp
tag and the text attribute must be set to the id of a
text tag.
JSP Tag Lib Descriptor
<name>substitute</name>
<tagclass>org.apache.taglibs.regexp.SubstituteTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Uses the regexp to perform substitutions on the text.</info>
<attribute>
<name>regexp</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>text</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
RegexpTag
,
TextTag
,
RegexpData
,
TextData
,
Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doEndTag()
Uses the regexp to perform substitutions on the text,
then outputs the text. |
void |
setRegexp(java.lang.String str)
|
void |
setText(java.lang.String str)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstituteTag
public SubstituteTag()
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Uses the regexp to perform substitutions on the text,
then outputs the text.
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- EVAL_BODY
- Throws:
javax.servlet.jsp.JspException
setRegexp
public final void setRegexp(java.lang.String str)
setText
public final void setText(java.lang.String str)
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.