com.opensymphony.webwork.views.jsp.ui
Class FileTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.opensymphony.webwork.views.jsp.WebWorkTagSupport
          extended bycom.opensymphony.webwork.views.jsp.ParameterizedTagSupport
              extended bycom.opensymphony.webwork.views.jsp.ui.AbstractUITag
                  extended bycom.opensymphony.webwork.views.jsp.ui.FileTag
All Implemented Interfaces:
IterationTag, ParamTag.Parametric, Serializable, Tag

public class FileTag
extends AbstractUITag

Version:
$Revision: 1.8 $
Author:
$Author: plightbo $
See Also:
Serialized Form

Field Summary
protected  String acceptAttr
          Some browsers support the ability to restrict the kinds of files (that can be attached to the contents of a form) using an ACCEPT attribute.
protected  String sizeAttr
           
static String TEMPLATE
          The name of the default template for the FileTag
 
Fields inherited from class com.opensymphony.webwork.views.jsp.ui.AbstractUITag
cssClassAttr, cssStyleAttr, disabledAttr, labelAttr, labelPositionAttr, nameAttr, onblurAttr, onchangeAttr, onclickAttr, ondblclickAttr, onfocusAttr, onkeydownAttr, onkeypressAttr, onkeyupAttr, onmousedownAttr, onmousemoveAttr, onmouseoutAttr, onmouseoverAttr, onmouseupAttr, onselectAttr, requiredAttr, tabindexAttr, templateAttr, templateDir, theme, themeAttr, valueAttr
 
Fields inherited from class com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
log
 
Fields inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
ALT_SYNTAX
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
FileTag()
           
 
Method Summary
protected  void evaluateParams(com.opensymphony.xwork.util.OgnlValueStack stack)
           
protected  String getDefaultTemplate()
          A contract that requires each concrete UI Tag to specify which template should be used as a default.
 void setAccept(String accept)
           
 void setSize(String size)
           
 
Methods inherited from class com.opensymphony.webwork.views.jsp.ui.AbstractUITag
buildTemplateName, doEndTag, doStartTag, evaluateExtraParams, evaluateNameValue, getTemplateDir, getTemplateName, getTheme, getValueClassType, mergeTemplate, setCssClass, setCssStyle, setDisabled, setLabel, setLabelposition, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequired, setTabindex, setTemplate, setTheme, setValue
 
Methods inherited from class com.opensymphony.webwork.views.jsp.ParameterizedTagSupport
addParameter, getParameters, reset
 
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkTagSupport
findString, findValue, findValue, getStack, toString, translateVariables
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE

public static final String TEMPLATE
The name of the default template for the FileTag

See Also:
Constant Field Values

acceptAttr

protected String acceptAttr
Some browsers support the ability to restrict the kinds of files (that can be attached to the contents of a form) using an ACCEPT attribute.


sizeAttr

protected String sizeAttr
Constructor Detail

FileTag

public FileTag()
Method Detail

setAccept

public void setAccept(String accept)

setSize

public void setSize(String size)

getDefaultTemplate

protected String getDefaultTemplate()
Description copied from class: AbstractUITag
A contract that requires each concrete UI Tag to specify which template should be used as a default. For example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value not begin with a '/' unless you intend to make the path absolute rather than relative to the current theme.

Specified by:
getDefaultTemplate in class AbstractUITag
Returns:
The name of the template to be used as the default.

evaluateParams

protected void evaluateParams(com.opensymphony.xwork.util.OgnlValueStack stack)
Overrides:
evaluateParams in class AbstractUITag

WebWork Project Page