|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
org.apache.struts.taglib.html.BaseInputTag
org.apache.struts.taglib.html.BaseFieldTag
Convenience base class for the various input tags for text fields.
Field Summary | |
protected java.lang.String |
accept
Comma-delimited list of content types that a server processing this form will handle correctly. |
protected java.lang.String |
name
The name of the bean containing our underlying property. |
protected boolean |
redisplay
The "redisplay contents" flag (used only on password ). |
protected java.lang.String |
type
The type of input field represented by this tag (text, password, or hidden). |
Fields inherited from class org.apache.struts.taglib.html.BaseInputTag |
cols, maxlength, messages, property, rows, value |
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
accesskey, defaultLocale, indexed, tabindex |
Constructor Summary | |
BaseFieldTag()
|
Method Summary | |
int |
doStartTag()
Generate the required input tag. |
protected java.lang.String |
formatValue(java.lang.Object value)
Return the given value as a formatted String . |
java.lang.String |
getAccept()
|
java.lang.String |
getName()
|
boolean |
getRedisplay()
|
void |
release()
Release any acquired resources. |
protected java.lang.String |
renderInputElement()
Renders a fully formed <input> element. |
void |
setAccept(java.lang.String accept)
|
void |
setName(java.lang.String name)
|
void |
setRedisplay(boolean redisplay)
|
Methods inherited from class org.apache.struts.taglib.html.BaseInputTag |
doEndTag, getCols, getMaxlength, getProperty, getRows, getSize, getValue, setCols, setMaxlength, setProperty, setRows, setSize, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String accept
file
tag, but is implemented here because it affects the
rendered HTML of the corresponding <input> tag.
protected java.lang.String name
protected boolean redisplay
password
).
protected java.lang.String type
Constructor Detail |
public BaseFieldTag()
Method Detail |
public java.lang.String getAccept()
public void setAccept(java.lang.String accept)
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean getRedisplay()
public void setRedisplay(boolean redisplay)
public int doStartTag() throws JspException
Support for indexed property since Struts 1.1
doStartTag
in class BaseInputTag
JspException
- if a JSP exception has occurredprotected java.lang.String renderInputElement() throws JspException
JspException
protected java.lang.String formatValue(java.lang.Object value) throws JspException
String
. This
implementation escapes potentially harmful HTML characters.
value
- The value to be formatted. null
values will
be returned as the empty String "".
JspException
- if a JSP exception has occurredpublic void release()
release
in class BaseInputTag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |