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

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

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

Extended form tag.

Extends <html:form> tag which is provided by Struts. Adds random ID to action URL to avoid caching.


Attributes suppported by tag

Refer to API of <html:form> tag.


Scripting variable of custom tag

Refer to API of <html:form> tag.


How to use

Refer to API of <html:form> tag.

See Also:
Serialized Form

Field Summary
private static java.lang.String RANDOM_ID_KEY
          Parameter name of random ID to avoid caching.
private static long serialVersionUID
          Serial version ID
 
Fields inherited from class org.apache.struts.taglib.html.FormTag
acceptCharset, action, beanName, beanScope, beanType, enctype, focus, focusIndex, lineEnd, mapping, messages, method, moduleConfig, onreset, onsubmit, readonly, scriptLanguage, servlet, style, styleClass, styleId, target
 
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
FormTag()
           
 
Method Summary
protected  java.lang.String getActionMappingURL(java.lang.String action, javax.servlet.jsp.PageContext pageContext)
          Adds random ID to action URL to avoid caching.
protected  java.lang.String renderFormStartElement()
          Generates the start tag of <form> by appending random parameter.
 
Methods inherited from class org.apache.struts.taglib.html.FormTag
doEndTag, doStartTag, getAcceptCharset, getAction, getBeanName, getEnctype, getFocus, getFocusIndex, getMethod, getOnreset, getOnsubmit, getScriptLanguage, getStyle, getStyleClass, getStyleId, getTarget, initFormBean, isDisabled, isReadonly, lookup, release, renderAction, renderAttribute, renderFocusJavascript, renderName, renderOtherAttributes, renderToken, setAcceptCharset, setAction, setDisabled, setEnctype, setFocus, setFocusIndex, setMethod, setOnreset, setOnsubmit, setReadonly, setScriptLanguage, setStyle, setStyleClass, setStyleId, setTarget
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values

RANDOM_ID_KEY

private static final java.lang.String RANDOM_ID_KEY
Parameter name of random ID to avoid caching.

See Also:
Constant Field Values
Constructor Detail

FormTag

public FormTag()
Method Detail

renderFormStartElement

protected java.lang.String renderFormStartElement()
Generates start tag of <form> by appending the random parameter.

Overrides:
renderFormStartElement in class org.apache.struts.taglib.html.FormTag
Returns:
Start tag of form

getActionMappingURL

protected java.lang.String getActionMappingURL(java.lang.String action,
                                               javax.servlet.jsp.PageContext pageContext)
Adds random ID to action URL to avoid caching.

Parameters:
action - Action path
pageContext - Page information
Returns:
Action URL in which random ID is appended