jp.terasoluna.toursample.common.action
クラス SetErrorCodeAction

java.lang.Object
  上位を拡張 org.apache.struts.action.Action
      上位を拡張 jp.terasoluna.fw.web.struts.actions.ActionEx
          上位を拡張 jp.terasoluna.fw.web.struts.actions.ForwardAction
              上位を拡張 jp.terasoluna.toursample.common.action.SetErrorCodeAction

public class SetErrorCodeAction
extends jp.terasoluna.fw.web.struts.actions.ForwardAction

エラーが発生した場合、エラーメッセージキーを設定して画面遷移を行なう
アクションクラス。

関連項目:
ForwardAction

フィールドの概要
 
クラス jp.terasoluna.fw.web.struts.actions.ActionEx から継承されたフィールド
FORWARD_TXTOKEN_ERROR
 
クラス org.apache.struts.action.Action から継承されたフィールド
defaultLocale, servlet
 
コンストラクタの概要
SetErrorCodeAction()
           
 
メソッドの概要
 org.apache.struts.action.ActionForward doExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           エラーに発生時おいて、エラーメッセージコードを設定する。
 java.lang.String getMessageKey()
          エラーメッセージコードを返却する。
 void setMessageKey(java.lang.String messageKey)
          エラーメッセージコードを設定する。
 
クラス jp.terasoluna.fw.web.struts.actions.ActionEx から継承されたメソッド
addErrors, addMessages, execute, isSaveToken, isTokenCheck, processTokenCheck, setSaveToken, setTokenCheck
 
クラス org.apache.struts.action.Action から継承されたメソッド
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SetErrorCodeAction

public SetErrorCodeAction()
メソッドの詳細

getMessageKey

public java.lang.String getMessageKey()
エラーメッセージコードを返却する。

戻り値:
保持するエラーメッセージコード

setMessageKey

public void setMessageKey(java.lang.String messageKey)
エラーメッセージコードを設定する。

パラメータ:
messageKey - 設定するエラーメッセージコード

doExecute

public org.apache.struts.action.ActionForward doExecute(org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)

エラーに発生時おいて、エラーメッセージコードを設定する。
エラーメッセージを設定後、画面遷移を行なう。

オーバーライド:
クラス jp.terasoluna.fw.web.struts.actions.ForwardAction 内の doExecute
パラメータ:
mapping - アクションマッピング
form - アクションフォーム
request - HTTPリクエスト
response - HTTPレスポンス
戻り値:
遷移先のアクションフォワード