jp.terasoluna.fw.web.struts.taglib
Class SubmitTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts.taglib.html.BaseHandlerTag
              extended by org.apache.struts.taglib.html.SubmitTag
                  extended by jp.terasoluna.fw.web.struts.taglib.SubmitTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class SubmitTag
extends org.apache.struts.taglib.html.SubmitTag

Extended submit tag. Specifies the target of form.

Sets attrbute value of target at the time of submitting form. (Refer to usage method)

Attribute supported by tag

In submitTag, following attributes are supported.

Attribute name Default value Required Execution time format Overview
target - false true Specifies target destination.

For oter attributes, refer to API of <html:submit> tag.



Scripting variable of custom tag

Refer to API of <html:submit> tag.


How to use
  <ts:submit value=" submit " target=" rightFrame "/>
 

See Also:
Serialized Form

Field Summary
private static java.lang.String ATTRIBUTE_FRAME_SCRIPT
          frameScript attribute
private static java.lang.String JS_METHOD_FRAME_TARGET
          setFrameTarget method name
private static java.lang.String LABEL_SUBMIT
          Submit label
private static long serialVersionUID
          Serial version ID
private static java.lang.String SYSTEM_LINE_SEPARATOR
          Line separator character system property
private static java.lang.String TAB_SUBMIT_START
          submit start tag
private static java.lang.String TAG_COMMENT_END
          Comment end tag
private static java.lang.String TAG_COMMENT_START
          Comment start tag
private static java.lang.String TAG_JS_END
          javascript end tag
private static java.lang.String TAG_JS_START
          javascript start tag
private static java.lang.String TAG_SUBMIT_END
          submit end tag
protected  java.lang.String target
          Target name to be specified
 
Fields inherited from class org.apache.struts.taglib.html.SubmitTag
messages, property, text, value
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, doDisabled, doReadonly, indexed, tabindex
 
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
SubmitTag()
           
 
Method Summary
 int doEndTag()
          Process at the time of tag terminaton.
 java.lang.String getTarget()
          Fetches the target name.
 void release()
          Releases all allocated resources.
 void setTarget(java.lang.String target)
          Sets target name.
 
Methods inherited from class org.apache.struts.taglib.html.SubmitTag
doAfterBody, doStartTag, getDefaultValue, getElementOpen, getProperty, getValue, prepareButtonAttributes, prepareName, prepareValue, setProperty, setValue
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, 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, prepareOtherAttributes, prepareStyles, prepareTextEvents, 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
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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 javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values

LABEL_SUBMIT

private static final java.lang.String LABEL_SUBMIT
Submit label

See Also:
Constant Field Values

ATTRIBUTE_FRAME_SCRIPT

private static final java.lang.String ATTRIBUTE_FRAME_SCRIPT
frameScript attribute

See Also:
Constant Field Values

SYSTEM_LINE_SEPARATOR

private static final java.lang.String SYSTEM_LINE_SEPARATOR
Line separator character System property

See Also:
Constant Field Values

TAG_JS_START

private static final java.lang.String TAG_JS_START
javascript start tag

See Also:
Constant Field Values

TAG_JS_END

private static final java.lang.String TAG_JS_END
javascript end tag

See Also:
Constant Field Values

TAG_COMMENT_START

private static final java.lang.String TAG_COMMENT_START
Comment start tag

See Also:
Constant Field Values

TAG_COMMENT_END

private static final java.lang.String TAG_COMMENT_END
Comment end tag

See Also:
Constant Field Values

TAB_SUBMIT_START

private static final java.lang.String TAB_SUBMIT_START
submit start tag

See Also:
Constant Field Values

TAG_SUBMIT_END

private static final java.lang.String TAG_SUBMIT_END
submit end tag

See Also:
Constant Field Values

JS_METHOD_FRAME_TARGET

private static final java.lang.String JS_METHOD_FRAME_TARGET
setFrameTarget method name

See Also:
Constant Field Values

target

protected java.lang.String target
Target name to be specified

Constructor Detail

SubmitTag

public SubmitTag()
Method Detail

getTarget

public java.lang.String getTarget()

Fetches the target name.

Returns:
target target name

setTarget

public void setTarget(java.lang.String target)

Sets target name.

Parameters:
target - Target name

release

public void release()

Releases all allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class org.apache.struts.taglib.html.SubmitTag

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

Process at the time of tag termination.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class org.apache.struts.taglib.html.SubmitTag
Returns:
EVAL_PAGE
Throws:
javax.servlet.jsp.JspException - Exception