com.arsdigita.acs.tags
Class MaybeOneRowTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--javax.servlet.jsp.tagext.BodyTagSupport
|
+--com.arsdigita.acs.tags.SqlTag
|
+--com.arsdigita.acs.tags.MaybeOneRowTag
- All Implemented Interfaces:
- BodyTag, Serializable, Tag
- public class MaybeOneRowTag
- extends SqlTag
- implements BodyTag
Tag class for ad:db_0or1row.
Tag body contains a SQL statement. At end of tag, performs the query
and stuffs the specified pageContext attribute with the result row.
Unlike 1row, will be silent if no row is found--doesn't put any thing
into attributes, and so pageContext.get("obj") will return null.
- See Also:
- Serialized Form
Fields inherited from class com.arsdigita.acs.tags.SqlTag |
db, sql |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaybeOneRowTag
public MaybeOneRowTag()
doAfterBody
public int doAfterBody()
throws JspException
- Description copied from interface:
BodyTag
- Actions after some body has been evaluated.
Not invoked in empty tags or in tags returning SKIP_BODY in doStartTag()
This method is invoked after every body evaluation.
The pair "BODY -- doAfterBody()" is invoked initially if doStartTag()
returned EVAL_BODY_TAG, and it is repeated as long
as the doAfterBody() evaluation returns EVAL_BODY_TAG
The method re-invocations may be lead to different actions because
there might have been some changes to shared state, or because
of external computation.
- Specified by:
doAfterBody
in interface BodyTag
- Overrides:
doAfterBody
in class BodyTagSupport
doEndTag
public int doEndTag()
throws JspException
- Description copied from interface:
Tag
- Process the end tag. This method will be called on all Tag objects.
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class BodyTagSupport
setObj
public void setObj(String s)
setType
public void setType(String s)