com.ora.jsp.tags.sql.value
Class ValueTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.ora.jsp.tags.sql.value.ValueTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BigDecimalValueTag, BooleanValueTag, BytesValueTag, ByteValueTag, DateValueTag, DoubleValueTag, FloatValueTag, IntValueTag, LongValueTag, ObjectValueTag, ShortValueTag, StringValueTag, TimestampValueTag, TimeValueTag

public class ValueTag
extends javax.servlet.jsp.tagext.TagSupport

This class is a superclass for custom action classes intended to be used in the body of a sqlQuery or an sqlUpdate action element. It provides methods for dealing with common attributes.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
protected  java.lang.String param
           
protected  java.lang.String pattern
           
protected  java.lang.String property
           
protected  java.lang.String stringValue
           
 
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
 
Constructor Summary
ValueTag()
           
 
Method Summary
protected  java.lang.Object getBean(java.lang.String beanName)
          Returns the value of the specified bean, or throws a JspException if it doesn't exist.
protected  java.lang.String getParameter(java.lang.String paramName)
          Returns the value of the specified request parameter, or throws a JspException if it doesn't exist.
protected  java.lang.reflect.Method getPropertyReadMethod(java.lang.Object bean, java.lang.String propertyName)
          Returns the read access method for the specified property of the specified bean, or throws a JspException if it doesn't exist.
protected  java.lang.Object getValue(java.lang.Object bean, java.lang.reflect.Method readMethod, java.lang.String propertyName)
          Invokes the read access method on the specified bean and returns the result, or throws a JspException if it fails.
 void release()
          Releases all instance variables.
 void setName(java.lang.String name)
          Sets the name of the bean in one of the JSP scopes with a property that holds the value.
 void setParam(java.lang.String param)
          Sets the name of the HTTP parameter that holds the value.
 void setPattern(java.lang.String pattern)
          Sets the parsing pattern for a date/time or a numeric value expressed as a String.
 void setProperty(java.lang.String property)
          Sets the name of the bean property that holds the value.
 void setStringValue(java.lang.String stringValue)
          Sets the value as a String.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, 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
 

Field Detail

stringValue

protected java.lang.String stringValue

pattern

protected java.lang.String pattern

param

protected java.lang.String param

name

protected java.lang.String name

property

protected java.lang.String property
Constructor Detail

ValueTag

public ValueTag()
Method Detail

setStringValue

public void setStringValue(java.lang.String stringValue)
Sets the value as a String.

setPattern

public void setPattern(java.lang.String pattern)
Sets the parsing pattern for a date/time or a numeric value expressed as a String.

setParam

public void setParam(java.lang.String param)
Sets the name of the HTTP parameter that holds the value.

setName

public void setName(java.lang.String name)
Sets the name of the bean in one of the JSP scopes with a property that holds the value.

setProperty

public void setProperty(java.lang.String property)
Sets the name of the bean property that holds the value.

release

public void release()
Releases all instance variables.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

getParameter

protected java.lang.String getParameter(java.lang.String paramName)
                                 throws javax.servlet.jsp.JspException
Returns the value of the specified request parameter, or throws a JspException if it doesn't exist.

getBean

protected java.lang.Object getBean(java.lang.String beanName)
                            throws javax.servlet.jsp.JspException
Returns the value of the specified bean, or throws a JspException if it doesn't exist.

getPropertyReadMethod

protected java.lang.reflect.Method getPropertyReadMethod(java.lang.Object bean,
                                                         java.lang.String propertyName)
                                                  throws javax.servlet.jsp.JspException
Returns the read access method for the specified property of the specified bean, or throws a JspException if it doesn't exist.

getValue

protected java.lang.Object getValue(java.lang.Object bean,
                                    java.lang.reflect.Method readMethod,
                                    java.lang.String propertyName)
                             throws javax.servlet.jsp.JspException
Invokes the read access method on the specified bean and returns the result, or throws a JspException if it fails.