|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.ivata.mask.web.tag.format.FormatTag
This class wraps the HTMLFormatter class, so that
you can call HTMLFormatter.format as a JSP tag.
Tag attributes:
| attribute | reqd. | param. class | description |
|---|---|---|---|
| formatter | false | com.ivata.html.format.HTMLFormatter |
Sets the formatter which actually does the formatting. |
| Field Summary |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 | |
FormatTag()
|
|
| Method Summary | |
int |
doAfterBody()
Here the contents of the tag are formatted using the HTMLFormatter provided. |
int |
doStartTag()
This method is called when the JSP engine encounters the start tag, after the attributes are processed. |
void |
setFormatter(HTMLFormatter formatterParam)
Set the HTMLFormatter
object which actually does all the hard work. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Constructor Detail |
public FormatTag()
| Method Detail |
public int doAfterBody()
throws javax.servlet.jsp.JspException
Here the contents of the tag are formatted using the
HTMLFormatter provided.
This method is called after the JSP engine processes the body content of the tag.
SKIP_BODY since the JSP engine should not evaluate
the tag body again.
javax.servlet.jsp.JspException - encapsulates any exception when calling
out.println.
writeTagBodyContent}.public int doStartTag()
This method is called when the JSP engine encounters the start tag, after the attributes are processed.
Scripting variables (if any) have their values set here.
EVAL_BODY_BUFFERED since the body is always
evaluated once.public void setFormatter(HTMLFormatter formatterParam)
Set the HTMLFormatter
object which actually does all the hard work. We just wrap
HTMLFormatter.format in a JSP tag.
formatterParam - HTMLFormatter used to format the tag
body.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||