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, value
accesskey, 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, setValue
doErrorsExist, 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, setTitleKey
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected 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.Tag
doStartTag
in class BaseInputTag
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected String renderInputElement() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void prepareValue(StringBuffer results) throws javax.servlet.jsp.JspException
results
- The StringBuffer that output will be appended to.javax.servlet.jsp.JspException
protected 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.Tag
release
in class BaseInputTag
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.