org.apache.struts.taglib.html

Class BaseInputTag

Known Direct Subclasses:
BaseFieldTag, TextareaTag

public abstract class BaseInputTag
extends BaseHandlerTag

Abstract base class for the various input tags.

Version:
$Revision: 1.3 $ $Date: 2003/05/18 18:37:20 $

Author:
Craig R. McClanahan

Field Summary

protected String
cols
The number of character columns for this field, or negative for no limit.
protected String
maxlength
The maximum number of characters allowed, or negative for no limit.
protected static MessageResources
messages
The message resources for this package.
protected String
property
The name of the field (and associated property) being processed.
protected String
rows
The number of rows for this field, or negative for no limit.
protected 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, indexed, locale, log, loopTagStatusClass, loopTagStatusGetIndex, loopTagSupportClass, loopTagSupportGetStatus, messages, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, readonly, style, styleClass, styleId, tabindex, title, titleKey, triedJstlInit, triedJstlSuccess

Method Summary

int
doEndTag()
Process the end of this tag.
int
doStartTag()
Process the start of this tag.
String
getCols()
Return the number of columns for this field.
String
getMaxlength()
Return the maximum length allowed.
String
getProperty()
Return the property name.
String
getRows()
Return the number of rows for this field.
String
getSize()
Return the size of this field (synonym for getCols()).
String
getValue()
Return the field value (if any).
void
release()
Release any acquired resources.
void
setCols(String cols)
Set the number of columns for this field.
void
setMaxlength(String maxlength)
Set the maximum length allowed.
void
setProperty(String property)
Set the property name.
void
setRows(String rows)
Set the number of rows for this field.
void
setSize(String size)
Set the size of this field (synonym for setCols()).
void
setValue(String value)
Set the field value (if any).

Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag

getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getIndexed, 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, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, release, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey

Field Details

cols

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


maxlength

protected 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 String property
The name of the field (and associated property) being processed.


rows

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


value

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

Method Details

doEndTag

public int doEndTag()
            throws JspException
Process the end of this tag. The default implementation does nothing.


doStartTag

public int doStartTag()
            throws JspException
Process the start of this tag. The default implementation does nothing.


getCols

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


getMaxlength

public String getMaxlength()
Return the maximum length allowed.


getProperty

public String getProperty()
Return the property name.


getRows

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


getSize

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


getValue

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


release

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


setCols

public void setCols(String cols)
Set the number of columns for this field.

Parameters:
cols - The new number of columns


setMaxlength

public void setMaxlength(String maxlength)
Set the maximum length allowed.

Parameters:
maxlength - The new maximum length


setProperty

public void setProperty(String property)
Set the property name.

Parameters:
property - The new property name


setRows

public void setRows(String rows)
Set the number of rows for this field.

Parameters:
rows - The new number of rows


setSize

public void setSize(String size)
Set the size of this field (synonym for setCols()).

Parameters:
size - The new size


setValue

public void setValue(String value)
Set the field value (if any).

Parameters:
value - The new field value, or null to retrieve the corresponding property from the bean


Copyright B) 2000-2005 - Apache Software Foundation