Class FileUploadTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.FormElementTag
org.deltava.taglib.html.FileUploadTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to generate a FILE tag.
- Since:
- 1.0
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.html.FormElementTag
_value
Fields inherited from class org.deltava.taglib.html.ElementTag
_classes, _data, _out
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Generates the HTML for this Input element.void
release()
void
setMax
(int maxLen) Sets the maximum length of this field.void
setMaxSize
(int kb) Sets the maximum size for the file.void
setOnChange
(String jscript) Sets the JavaScript onChange event for this field.void
setSize
(int len) Sets the size of this field.Methods inherited from class org.deltava.taglib.html.FormElementTag
setDelimValues, setIdx, setName, setRequired, setValue, validateState
Methods inherited from class org.deltava.taglib.html.ElementTag
doStartTag, getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
FileUploadTag
public FileUploadTag()Creates a new file upload element tag.
-
-
Method Details
-
setSize
public void setSize(int len) Sets the size of this field. This does nothing if a negative, zero or non-numeric value is passed.- Parameters:
len
- the size of the field- See Also:
-
setOnChange
Sets the JavaScript onChange event for this field.- Parameters:
jscript
- the JavaScript to execute when the field value changes
-
setMax
public void setMax(int maxLen) Sets the maximum length of this field. This does nothing if a negative, zero or non-numeric value is passed.- Parameters:
maxLen
- the maximum length of the field- See Also:
-
setMaxSize
public void setMaxSize(int kb) Sets the maximum size for the file. This will NOT provide validation code, instead places a small label to the right of the input box with the size limit displayed.- Parameters:
kb
- the size limit in kilobytes
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classElementTag
-
doEndTag
Generates the HTML for this Input element.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
- if an error occurs
-