org.apache.struts.taglib.html
Class BaseFieldTag
public abstract class BaseFieldTag
Convenience base class for the various input tags for text fields.
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $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).
|
accesskey , alt , altKey , bundle , defaultLocale , disabled , doDisabled , doReadonly , errorKey , errorStyle , errorStyleClass , errorStyleId , indexed , locale , log , loopTagStatusClass , loopTagStatusGetIndex , loopTagSupportClass , loopTagSupportGetStatus , messages , onblur , onchange , onclick , ondblclick , onfocus , onkeydown , onkeypress , onkeyup , onmousedown , onmousemove , onmouseout , onmouseover , onmouseup , onselect , readonly , style , styleClass , styleId , tabindex , title , titleKey , triedJstlInit , triedJstlSuccess |
doEndTag , doStartTag , getCols , getMaxlength , getName , getProperty , getRows , getSize , getValue , prepareName , release , setCols , setMaxlength , setName , setProperty , setRows , setSize , setValue |
doErrorsExist , getAccesskey , getAlt , getAltKey , getBundle , getDisabled , getElementClose , getErrorKey , getErrorStyle , getErrorStyleClass , getErrorStyleId , getIndexValue , getIndexed , getJstlLoopIndex , 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 , prepareKeyEvents , prepareMouseEvents , prepareName , prepareOtherAttributes , prepareStyles , prepareTextEvents , release , setAccesskey , setAlt , setAltKey , setBundle , setDisabled , setErrorKey , setErrorStyle , setErrorStyleClass , setErrorStyleId , setIndexed , setLocale , setOnblur , setOnchange , setOnclick , setOndblclick , setOnfocus , setOnkeydown , setOnkeypress , setOnkeyup , setOnmousedown , setOnmousemove , setOnmouseout , setOnmouseover , setOnmouseup , setOnselect , setReadonly , setStyle , setStyleClass , setStyleId , setTabindex , setTitle , setTitleKey |
accept
protected String accept
Comma-delimited list of content types that a server processing this form
will handle correctly. This property is defined only for the
file
tag, but is implemented here because it affects the
rendered HTML of the corresponding <input> tag.
redisplay
protected boolean redisplay
The "redisplay contents" flag (used only on password
).
type
protected String type
The type of input field represented by this tag (text, password, or
hidden).
doStartTag
public int doStartTag()
throws JspException
Generate the required input tag.
Support for indexed property since Struts 1.1
- doStartTag in interface BaseInputTag
formatValue
protected String formatValue(Object value)
throws JspException
Return the given value as a formatted String
. This
implementation escapes potentially harmful HTML characters.
value
- The value to be formatted. null
values will
be returned as the empty String "".
getAccept
public String getAccept()
getRedisplay
public boolean getRedisplay()
prepareValue
protected void prepareValue(StringBuffer results)
throws JspException
Render the value element
results
- The StringBuffer that output will be appended to.
renderInputElement
protected String renderInputElement()
throws JspException
Renders a fully formed <input> element.
setAccept
public void setAccept(String accept)
setRedisplay
public void setRedisplay(boolean redisplay)
Copyright B) 2000-2007 - The Apache Software Foundation