|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public abstract class BaseInputTag
Abstract base class for the various input tags.
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 |
name
The name of the bean containing our underlying property. |
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, doDisabled, doReadonly, indexed, tabindex |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
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. |
String |
getAutocomplete()
Return autocomplete |
String |
getCols()
Return the number of columns for this field. |
String |
getMaxlength()
Return the maximum length allowed. |
String |
getName()
|
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). |
protected String |
prepareName()
Prepare the name element |
void |
release()
Release any acquired resources. |
void |
setAutocomplete(String autocomplete)
Activate/disactivate autocompletion (on/off) |
void |
setCols(String cols)
Set the number of columns for this field. |
void |
setMaxlength(String maxlength)
Set the maximum length allowed. |
void |
setName(String name)
|
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 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, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected static MessageResources messages
protected String cols
protected String maxlength
protected String property
protected String rows
protected String value
null
to retrieve the
corresponding property from our associated bean.
protected String name
Constructor Detail |
---|
public BaseInputTag()
Method Detail |
---|
public String getAutocomplete()
public void setAutocomplete(String autocomplete)
public String getName()
public void setName(String name)
public String getCols()
public void setCols(String cols)
cols
- The new number of columnspublic String getMaxlength()
public void setMaxlength(String maxlength)
maxlength
- The new maximum lengthpublic String getProperty()
public void setProperty(String property)
property
- The new property namepublic String getRows()
public void setRows(String rows)
rows
- The new number of rowspublic String getSize()
getCols()
).
public void setSize(String size)
setCols()
).
size
- The new sizepublic String getValue()
public void setValue(String value)
value
- The new field value, or null
to retrieve the
corresponding property from the beanpublic int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredprotected String prepareName() throws JspException
prepareName
in class BaseHandlerTag
JspException
public void release()
release
in interface Tag
release
in class BaseHandlerTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |