|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.TCIfTag
public class TCIfTag
This tag evaluates an expression and includes the body of the tag if the expression evaluates to true.
This tag functions the same as the JSTL tag of the same name. The difference is that it uses the Tagger Cat EL.
The test attribute is not wrapped in ${ and } delimiters.
Tag Attributes
page - default if not specified session request application

| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
TCIfTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Process the start tag for this instance. |
boolean |
isConditionTrue()
Returns the result of the expression. |
void |
setFormat(java.lang.String format)
Sets the format for displaying the results. |
void |
setTest(java.lang.String test)
Sets the expression string. |
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setScope, setValue, setVar |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TCIfTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractExpEvalTagjavax.servlet.jsp.JspTagException
javax.servlet.jsp.JspException
public boolean isConditionTrue()
public void setFormat(java.lang.String format)
format - the format string valuepublic void setTest(java.lang.String test)
test - the expression string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||