jp.terasoluna.fw.web.struts.action
クラス ActionMappingEx

java.lang.Object
  上位を拡張 org.apache.struts.config.ActionConfig
      上位を拡張 org.apache.struts.action.ActionMapping
          上位を拡張 jp.terasoluna.fw.web.struts.action.ActionMappingEx
すべての実装されたインタフェース:
Serializable

public class ActionMappingEx
extends org.apache.struts.action.ActionMapping

ActionMapping拡張クラス。

StrutsのActionMappingに対して、以下の点が拡張されている。

フィールドのgetterとsetterを同名にすると、 プロパティが設定されないことがあるため、getterと setterではメソッドを同名にしないこと。
また、struts-config.xmlのset-property指定の プロパティは、名称をsetterに合わせること。
本機能を利用するためには、struts-config.xmlに対し、 <action-mappings>要素のtype属性に クラス名を指定する。

struts-config.xml によるActionMappingExの設定例

  <struts-config>
    ・・・
   <action-mappings
    type="jp.terasoluna.fw.web.struts.action.ActionMappingEx">
    ・・・
     <action path="/start"
       name="validateSampleForm"
       scope="session">
       ・・・
     </action>
    ・・・
   </action-mappings>
 ・・・
 

関連項目:
RequestProcessorEx, 直列化された形式

フィールドの概要
 
クラス org.apache.struts.config.ActionConfig から継承されたフィールド
attribute, cancellable, configured, exceptions, forward, forwards, include, input, moduleConfig, multipartClass, name, parameter, path, prefix, roleNames, roles, scope, suffix, type, unknown, validate
 
コンストラクタの概要
ActionMappingEx()
           
 
メソッドの概要
 boolean getCancelPopulate()
          ポピュレーションキャンセルフラグを取得する。
 boolean getClearForm()
          アクションフォームクリアフラグを取得する。
 void setCancelPopulate(boolean cancelPopulate)
          ポピュレーションキャンセルフラグを設定する。
 void setClearForm(boolean clearForm)
          アクションフォームクリアフラグを設定する。
 
クラス org.apache.struts.action.ActionMapping から継承されたメソッド
findForward, findForwards, getInputForward
 
クラス org.apache.struts.config.ActionConfig から継承されたメソッド
addExceptionConfig, addForwardConfig, findException, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getAttribute, getCancellable, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, setAttribute, setCancellable, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ActionMappingEx

public ActionMappingEx()
メソッドの詳細

setClearForm

public void setClearForm(boolean clearForm)
アクションフォームクリアフラグを設定する。

パラメータ:
clearForm - アクションフォームクリアフラグ

getClearForm

public boolean getClearForm()
アクションフォームクリアフラグを取得する。

戻り値:
アクションフォームクリアフラグ

setCancelPopulate

public void setCancelPopulate(boolean cancelPopulate)
ポピュレーションキャンセルフラグを設定する。

パラメータ:
cancelPopulate - ポピュレーションキャンセルフラグ

getCancelPopulate

public boolean getCancelPopulate()
ポピュレーションキャンセルフラグを取得する。

戻り値:
ポピュレーションキャンセルフラグ


Copyright © 2012. All Rights Reserved.