org.apache.struts.taglib.html

Class BaseInputTag

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) $

Field Summary
protected Stringcols
The number of character columns for this field, or negative for no limit.
protected Stringmaxlength
The maximum number of characters allowed, or negative for no limit.
protected static MessageResourcesmessages
The message resources for this package.
protected Stringname
The name of the bean containing our underlying property.
protected Stringproperty
The name of the field (and associated property) being processed.
protected Stringrows
The number of rows for this field, or negative for no limit.
protected Stringvalue
The value for this field, or null to retrieve the corresponding property from our associated bean.
Method Summary
intdoEndTag()
Process the end of this tag.
intdoStartTag()
Process the start of this tag.
StringgetCols()
Return the number of columns for this field.
StringgetMaxlength()
Return the maximum length allowed.
StringgetName()
StringgetProperty()
Return the property name.
StringgetRows()
Return the number of rows for this field.
StringgetSize()
Return the size of this field (synonym for getCols()).
StringgetValue()
Return the field value (if any).
protected StringprepareName()
Prepare the name element
voidrelease()
Release any acquired resources.
voidsetCols(String cols)
Set the number of columns for this field.
voidsetMaxlength(String maxlength)
Set the maximum length allowed.
voidsetName(String name)
voidsetProperty(String property)
Set the property name.
voidsetRows(String rows)
Set the number of rows for this field.
voidsetSize(String size)
Set the size of this field (synonym for setCols()).
voidsetValue(String value)
Set the field value (if any).

Field Detail

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.

name

protected String name
The name of the bean containing our underlying property.

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 Detail

doEndTag

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

Throws: JspException if a JSP exception has occurred

doStartTag

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

Throws: JspException if a JSP exception has occurred

getCols

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

getMaxlength

public String getMaxlength()
Return the maximum length allowed.

getName

public String getName()

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).

prepareName

protected String prepareName()
Prepare the name element

Returns: The element name.

release

public void release()
Release any acquired resources.

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

setName

public void setName(String name)

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 © 2000-2008 - The Apache Software Foundation