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

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.ora.jsp.tags.sql.value.ValueTag
              |
              +--com.ora.jsp.tags.sql.value.StringValueTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class StringValueTag
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  java.lang.String prefix
           
private  java.lang.String suffix
           
private  java.lang.String value
           
 
Fields inherited from class com.ora.jsp.tags.sql.value.ValueTag
name, param, pattern, property, 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
StringValueTag()
           
 
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  java.lang.String getString(java.lang.String beanName, java.lang.String propertyName)
           
 void release()
          Releases all instance variables.
 void setPrefix(java.lang.String prefix)
          Sets the prefix property.
 void setSuffix(java.lang.String suffix)
          Sets the suffix property.
 void setValue(java.lang.String value)
          Sets the value property.
 
Methods inherited from class com.ora.jsp.tags.sql.value.ValueTag
getBean, getParameter, getPropertyReadMethod, getValue, setName, setParam, setPattern, setProperty, setStringValue
 
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
 

Field Detail

value

private java.lang.String value

prefix

private java.lang.String prefix

suffix

private java.lang.String suffix
Constructor Detail

StringValueTag

public StringValueTag()
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the value property.

setPrefix

public void setPrefix(java.lang.String prefix)
Sets the prefix property.

setSuffix

public void setSuffix(java.lang.String suffix)
Sets the suffix 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.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

release

public void release()
Releases all instance variables.
Overrides:
release in class ValueTag

getString

private java.lang.String getString(java.lang.String beanName,
                                   java.lang.String propertyName)
                            throws javax.servlet.jsp.JspException