|
||||||||||
| 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.TCOutTag
public class TCOutTag
This tag evaluates an expression and sends the result to the out stream. If a
var (and optionally scope) attribute is set, then the result is also added
as an attribute to that scope object. The default scope is page .
The tag also has a format attribute. If the format is specified, that
formatter is applied to the result. The formatters are the Java format
strings.
The expression evaluator defaults to displaying nulls as the string
"(null)". If you want a different representation, set the nulls
attribute.

| 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 | |
|---|---|
TCOutTag()
|
|
| Method Summary | |
|---|---|
void |
doCatch(java.lang.Throwable t)
Report the exception message directly where the output of the tag would have been. |
int |
doEndTag()
Process the end tag. |
void |
doFinally()
|
int |
doStartTag()
Process the start tag for this instance. |
void |
setEscapeXml(boolean escapeXml)
Sets false to not escape XML, default is true |
void |
setFormat(java.lang.String format)
Sets the Format pattern for displaying the results. |
void |
setNulls(java.lang.String nulls)
Sets the String for displaying null result values. |
void |
setTranslateAs(java.lang.String translateAs)
Sets the String for translateAs attribute, this is only used by the DW Tagger. |
| 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 TCOutTag()
| 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 void setFormat(java.lang.String format)
format - the format pattern valuepublic void setNulls(java.lang.String nulls)
nulls - the string to use for nulls. The expression evaluator
defaults to displaying nulls as the string "(null)".public void setTranslateAs(java.lang.String translateAs)
translateAs - (not used).public void setEscapeXml(boolean escapeXml)
escapeXml - default is true
public void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyjava.lang.Throwablet - the throwable to handlepublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||