public abstract class BaseFieldTag extends BaseInputTag
| Modifier and Type | Field and Description |
|---|---|
protected String |
accept
Comma-delimited list of content types that a server processing this
form will handle correctly.
|
protected boolean |
redisplay
The "redisplay contents" flag (used only on
password). |
protected String |
type
The type of input field represented by this tag (text, password, or
hidden).
|
cols, maxlength, messages, name, property, rows, valueaccesskey, doDisabled, doReadonly, indexed, tabindex| Constructor and Description |
|---|
BaseFieldTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Generate the required input tag.
|
protected String |
formatValue(Object value)
Return the given value as a formatted
String. |
String |
getAccept() |
boolean |
getRedisplay() |
protected void |
prepareValue(StringBuffer results)
Render the value element
|
void |
release()
Release any acquired resources.
|
protected String |
renderInputElement()
Renders a fully formed <input> element.
|
void |
setAccept(String accept) |
void |
setRedisplay(boolean redisplay) |
doEndTag, getAutocomplete, getCols, getMaxlength, getName, getProperty, getRows, getSize, getValue, prepareName, setAutocomplete, setCols, setMaxlength, setName, setProperty, setRows, setSize, setValuedoErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDir, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLang, 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, prepareInternationalization, prepareKeyEvents, prepareMouseEvents, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDir, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLang, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKeydoAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected String accept
file tag, but is implemented here because it affects the
rendered HTML of the corresponding <input> tag.protected boolean redisplay
password).protected String type
public String getAccept()
public void setAccept(String accept)
public boolean getRedisplay()
public void setRedisplay(boolean redisplay)
public int doStartTag()
throws javax.servlet.jsp.JspException
Support for indexed property since Struts 1.1
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class BaseInputTagjavax.servlet.jsp.JspException - if a JSP exception has occurredprotected String renderInputElement() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected void prepareValue(StringBuffer results) throws javax.servlet.jsp.JspException
results - The StringBuffer that output will be appended to.javax.servlet.jsp.JspExceptionprotected String formatValue(Object value) throws javax.servlet.jsp.JspException
String. This
implementation escapes potentially harmful HTML characters.value - The value to be formatted. null values will
be returned as the empty String "".javax.servlet.jsp.JspException - if a JSP exception has occurredpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class BaseInputTagCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.