Class IgnoreConfirmationTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
nablarch.common.web.tag.CustomTagSupport
nablarch.common.web.tag.IgnoreConfirmationTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, jakarta.servlet.jsp.tagext.TryCatchFinally, Serializable

public class IgnoreConfirmationTag extends CustomTagSupport
JSPの画面状態が確認画面である場合に、部分的に確認画面の画面状態を無効化するクラス。

このタグにより囲まれた範囲にある入力項目のカスタムタグは、常に入力画面用の出力を行う。 このタグは内部状態の管理にリクエストスコープを使用するため、入れ子での使用を禁止する。

See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    int
    protected Boolean
    removeOriginalConfirmationPage(jakarta.servlet.jsp.PageContext pageContext)
    元の設定状態であるJSPの画面状態(入力画面または確認画面)をリクエストスコープから削除する。
    protected void
    setOriginalConfirmationPage(jakarta.servlet.jsp.PageContext pageContext, Boolean confirmationPage)
    元の設定状態であるJSPの画面状態(入力画面または確認画面)をリクエストスコープに設定する。

    Methods inherited from class nablarch.common.web.tag.CustomTagSupport

    doCatch, doFinally

    Methods inherited from class jakarta.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
  • Constructor Details

    • IgnoreConfirmationTag

      public IgnoreConfirmationTag()
  • Method Details

    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
       元の設定状態であるJSPの画面状態(入力画面または確認画面)を退避し、
       JSPが入力画面であることを示すフラグをリクエストスコープに設定する。
       
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
       退避しておいた元の設定状態であるJSPの画面状態(入力画面または確認画面)
       をリクエストスコープに設定する。
       
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • setOriginalConfirmationPage

      protected void setOriginalConfirmationPage(jakarta.servlet.jsp.PageContext pageContext, Boolean confirmationPage)
      元の設定状態であるJSPの画面状態(入力画面または確認画面)をリクエストスコープに設定する。
      Parameters:
      pageContext - ページコンテキスト
      confirmationPage - 確認画面の場合はtrue、確認画面でない場合はfalse
    • removeOriginalConfirmationPage

      protected Boolean removeOriginalConfirmationPage(jakarta.servlet.jsp.PageContext pageContext)
      元の設定状態であるJSPの画面状態(入力画面または確認画面)をリクエストスコープから削除する。
      Parameters:
      pageContext - ページコンテキスト
      Returns:
      削除した画面状態。確認画面の場合はtrue、確認画面でない場合はfalse。未設定の場合はnull