com.ora.jsp.tags.sql.value
Class ShortValueTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--com.ora.jsp.tags.sql.value.ValueTag
|
+--com.ora.jsp.tags.sql.value.ShortValueTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class ShortValueTag
- extends ValueTag
This class is a custom action intended to be used in the body of
a sqlQuery or an sqlUpdate action element. It adds the specified
value to its parent's value list.
- Version:
- 1.0
- Author:
- Hans Bergsten, Gefion software
- See Also:
- Serialized Form
Field Summary |
private short |
value
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent, values |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doEndTag()
Gets the value, specified by the value attribute, the stringValue
attribute, the param attribute, or the name and property attributes,
and adds it to the parent's value list. |
private short |
getShort(java.lang.String beanName,
java.lang.String propertyName,
java.lang.String pattern)
|
void |
setValue(short value)
Sets the value property. |
private short |
toShort(java.lang.String stringValue,
java.lang.String pattern)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
value
private short value
ShortValueTag
public ShortValueTag()
setValue
public void setValue(short value)
- Sets the value property.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Gets the value, specified by the value attribute, the stringValue
attribute, the param attribute, or the name and property attributes,
and adds it to the parent's value list. If the value is a String
and a pattern attribute is specified, the String is converted
into the appropriate type before being added to the parent's
value list.
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
toShort
private short toShort(java.lang.String stringValue,
java.lang.String pattern)
throws javax.servlet.jsp.JspException
getShort
private short getShort(java.lang.String beanName,
java.lang.String propertyName,
java.lang.String pattern)
throws javax.servlet.jsp.JspException