org.apache.struts.taglib.html
Class BaseInputTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.struts.taglib.html.BaseHandlerTag
                    |
                    +--org.apache.struts.taglib.html.BaseInputTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BaseFieldTag, TextareaTag

public abstract class BaseInputTag
extends BaseHandlerTag

Abstract base class for the various input tags.

Version:
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
See Also:
Serialized Form

Field Summary
protected  java.lang.String cols
          The number of character columns for this field, or negative for no limit.
protected  java.lang.String maxlength
          The maximum number of characters allowed, or negative for no limit.
protected static MessageResources messages
          The message resources for this package.
protected  java.lang.String name
          The name of the bean containing our underlying property.
protected  java.lang.String property
          The name of the field (and associated property) being processed.
protected  java.lang.String rows
          The number of rows for this field, or negative for no limit.
protected  java.lang.String value
          The value for this field, or null to retrieve the corresponding property from our associated bean.
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, alt, altKey, bundle, defaultLocale, disabled, doDisabled, doReadonly, errorKey, errorStyle, errorStyleClass, errorStyleId, indexed, locale, log, loopTagStatusClass, loopTagStatusGetIndex, loopTagSupportClass, loopTagSupportGetStatus, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, readonly, style, styleClass, styleId, tabindex, title, titleKey, triedJstlInit, triedJstlSuccess
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BaseInputTag()
           
 
Method Summary
 int doEndTag()
          Process the end of this tag.
 int doStartTag()
          Process the start of this tag.
 java.lang.String getCols()
          Return the number of columns for this field.
 java.lang.String getMaxlength()
          Return the maximum length allowed.
 java.lang.String getName()
           
 java.lang.String getProperty()
          Return the property name.
 java.lang.String getRows()
          Return the number of rows for this field.
 java.lang.String getSize()
          Return the size of this field (synonym for getCols()).
 java.lang.String getValue()
          Return the field value (if any).
protected  java.lang.String prepareName()
          Prepare the name element
 void release()
          Release any acquired resources.
 void setCols(java.lang.String cols)
          Set the number of columns for this field.
 void setMaxlength(java.lang.String maxlength)
          Set the maximum length allowed.
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String property)
          Set the property name.
 void setRows(java.lang.String rows)
          Set the number of rows for this field.
 void setSize(java.lang.String size)
          Set the size of this field (synonym for setCols()).
 void setValue(java.lang.String value)
          Set the field value (if any).
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getJstlLoopIndex, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, 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, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

cols

protected java.lang.String cols
The number of character columns for this field, or negative for no limit.

maxlength

protected java.lang.String maxlength
The maximum number of characters allowed, or negative for no limit.

messages

protected static MessageResources messages
The message resources for this package.

property

protected java.lang.String property
The name of the field (and associated property) being processed.

rows

protected java.lang.String rows
The number of rows for this field, or negative for no limit.

value

protected java.lang.String value
The value for this field, or null to retrieve the corresponding property from our associated bean.

name

protected java.lang.String name
The name of the bean containing our underlying property.
Constructor Detail

BaseInputTag

public BaseInputTag()
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getCols

public java.lang.String getCols()
Return the number of columns for this field.

setCols

public void setCols(java.lang.String cols)
Set the number of columns for this field.
Parameters:
cols - The new number of columns

getMaxlength

public java.lang.String getMaxlength()
Return the maximum length allowed.

setMaxlength

public void setMaxlength(java.lang.String maxlength)
Set the maximum length allowed.
Parameters:
maxlength - The new maximum length

getProperty

public java.lang.String getProperty()
Return the property name.

setProperty

public void setProperty(java.lang.String property)
Set the property name.
Parameters:
property - The new property name

getRows

public java.lang.String getRows()
Return the number of rows for this field.

setRows

public void setRows(java.lang.String rows)
Set the number of rows for this field.
Parameters:
rows - The new number of rows

getSize

public java.lang.String getSize()
Return the size of this field (synonym for getCols()).

setSize

public void setSize(java.lang.String size)
Set the size of this field (synonym for setCols()).
Parameters:
size - The new size

getValue

public java.lang.String getValue()
Return the field value (if any).

setValue

public void setValue(java.lang.String value)
Set the field value (if any).
Parameters:
value - The new field value, or null to retrieve the corresponding property from the bean

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start of this tag. The default implementation does nothing.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end of this tag. The default implementation does nothing.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

prepareName

protected java.lang.String prepareName()
                                throws javax.servlet.jsp.JspException
Prepare the name element
Overrides:
prepareName in class BaseHandlerTag
Returns:
The element name.

release

public void release()
Release any acquired resources.
Overrides:
release in class BaseHandlerTag


Copyright 2000-2006 - The Apache Software Foundation