Package com.aoindustries.taglib.legacy
Class FormTag
-
- All Implemented Interfaces:
ActionAttribute
,ClassAttribute
,DataAttribute
,DirAttribute
,EnctypeAttribute
,GlobalAttributes
,GlobalBufferedAttributes
,IdAttribute
,MethodAttribute
,OnsubmitAttribute
,ParamsAttribute
,StyleAttribute
,TargetAttribute
,Serializable
,BodyTag
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,TryCatchFinally
public class FormTag extends ElementBufferedBodyTag implements ActionAttribute, EnctypeAttribute, MethodAttribute, ParamsAttribute, TargetAttribute, OnsubmitAttribute
- Author:
- AO Industries, Inc.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.aoindustries.taglib.legacy.ElementBufferedBodyTag
global
-
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
-
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
-
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
-
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 Constructor Description FormTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns)
Adds a dynamic attribute.void
addParam(String name, Object value)
Adds a parameter.protected int
doEndTag(BufferResult capturedBody, Writer out)
void
doFinally()
MediaType
getContentType()
MediaType
getOutputType()
void
setAction(String action)
void
setEnctype(String enctype)
void
setMethod(String method)
void
setOnsubmit(Object onsubmit)
void
setTarget(String target)
-
Methods inherited from class com.aoindustries.taglib.legacy.ElementBufferedBodyTag
addData, getClazz, getData, getDir, getStyle, setClazz, setData, setDir, setDynamicAttribute, setId, setStyle
-
Methods inherited from class com.aoindustries.encoding.taglib.legacy.EncodingBufferedBodyTag
doAfterBody, doAfterBody, doCatch, doEndTag, doInitBody, doStartTag, doStartTag, getTempFileThreshold, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aoindustries.taglib.GlobalAttributes
getId
-
Methods inherited from interface com.aoindustries.taglib.ParamsAttribute
addParam
-
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
-
-
-
Method Detail
-
getContentType
public MediaType getContentType()
- Specified by:
getContentType
in classEncodingBufferedBodyTag
-
getOutputType
public MediaType getOutputType()
- Specified by:
getOutputType
in classEncodingBufferedBodyTag
-
setAction
public void setAction(String action)
- Specified by:
setAction
in interfaceActionAttribute
-
setEnctype
public void setEnctype(String enctype)
- Specified by:
setEnctype
in interfaceEnctypeAttribute
-
setMethod
public void setMethod(String method)
- Specified by:
setMethod
in interfaceMethodAttribute
-
addParam
public void addParam(String name, Object value)
Description copied from interface:ParamsAttribute
Adds a parameter.The conversion to string may be deferred, or the value may be streamed instead of being converted to a string. It is incorrect to change the state of the provided value; doing so may or may not affect the value of the resulting parameter.
Default method is for backward compatibility only. Implementations should override this version.
- Specified by:
addParam
in interfaceParamsAttribute
-
setTarget
public void setTarget(String target)
- Specified by:
setTarget
in interfaceTargetAttribute
-
setOnsubmit
public void setOnsubmit(Object onsubmit)
- Specified by:
setOnsubmit
in interfaceOnsubmitAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException
Description copied from class:ElementBufferedBodyTag
Adds a dynamic attribute.- Overrides:
addDynamicAttribute
in classElementBufferedBodyTag
- Returns:
true
when added, orfalse
when attribute not expected and has not been added.- Throws:
JspTagException
- See Also:
ParamUtils.addDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List, com.aoindustries.taglib.ParamsAttribute)
-
doEndTag
protected int doEndTag(BufferResult capturedBody, Writer out) throws JspException, IOException
- Overrides:
doEndTag
in classEncodingBufferedBodyTag
- Throws:
JspException
IOException
-
doFinally
public void doFinally()
- Specified by:
doFinally
in interfaceTryCatchFinally
- Overrides:
doFinally
in classElementBufferedBodyTag
-
-