[Seasar-user:17755] s2struts.diconについて
吉村 実
[E-MAIL ADDRESS DELETED]
2009年 6月 15日 (月) 11:48:14 JST
よしむらです。
Seasar2.3 + S2Struts 1.2 + Struts 1.2
から
Seasar2.4 + S2Struts 1.3 + Struts 1.3
への移行を試みておりますが、
移行前の環境において、
s2struts.diconで
<component name="pojoActionExecuteCommand"
class="org.seasar.struts.processor.PojoActionExecuteCommand">
<initMethod
name="addPojoActionCommand"><arg>singleMethodPojoActionCommand</arg></initMe
thod>
<initMethod
name="addPojoActionCommand"><arg>dispatchPojoActionCommand</arg></initMethod
>
<!-- 追加 -->
<aspect pointcut="execute">
<component
class="jp.go.XXXX.common.interceptor.NavigateInterceptor"/>
</aspect>
</component>
として、“NavigateInterceptor”でページ遷移に関する処理を
おこなっておりました。
移行後の環境において、
s2struts_hoge.diconを、
S2Struts 1.3に含まれるstruts.dicon、s2struts-processor.diconの内容プラス
上記の追加分を加えたような感じで
下記のように作成し、app.diconでs2struts_hoge.diconをインクルードするように
したのですが、“NavigateInterceptor”がインターセプトされない
状況です。
もしかすると、見当違いのことをやってるかもしれず
恐縮ですが、御助言頂けますでしょうか。
【s2struts_hoge.dicon】
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN"
"http://www.seasar.org/dtd/components21.dtd">
<components namespace="s2struts_hoge">
<component name="proxyAction"
class="org.seasar.struts.action.ProxyAction"/>
<component name="messageFacade"
class="org.seasar.struts.pojo.impl.MessageFacadeImpl" instance="request"/>
<component name="s2strutsContext"
class="org.seasar.struts.context.impl.S2StrutsContextImpl"
instance="session"/>
<component name="s2strutsApplContext"
class="org.seasar.struts.context.impl.S2StrutsApplContextImpl"/>
<component name="componentNameCreator"
class="org.seasar.struts.action.impl.ComponentNameCreatorImpl"/>
<component name="actionFactory"
class="org.seasar.struts.action.impl.ActionFactoryImpl"/>
<component name="classRegister"
class="org.seasar.struts.action.impl.ClassRegisterImpl"/>
<component name="pojoProcessAction"
class="org.seasar.struts.pojo.PojoProcessAction">
<initMethod name="addPojoCommand"><arg><component
class="org.seasar.struts.pojo.commands.PropertyBindingCommand"/></arg></init
Method>
<initMethod name="addPojoCommand"><arg><component
class="org.seasar.struts.pojo.commands.SingleMethodCommand"/></arg></initMet
hod>
<initMethod name="addPojoCommand"><arg><component
class="org.seasar.struts.pojo.commands.DispatchCommand"/></arg></initMethod>
<!-- 追加 -->
<aspect pointcut="execute">
<component
class="jp.go.XXXX.common.interceptor.NavigateInterceptor"/>
</aspect>
</component>
<!-- Lessconfig Components -->
<component name="autoStrutsConfigRule"
class="org.seasar.struts.lessconfig.config.impl.AutoStrutsConfigRuleImpl"/>
<component name="actionPathNamingRule"
class="org.seasar.struts.lessconfig.config.rule.impl.DefaultActionPathNaming
Rule"/>
<component name="actionFormNamingRule"
class="org.seasar.struts.lessconfig.config.rule.impl.DefaultActionFormNaming
Rule"/>
<component name="zeroConfigActionRule"
class="org.seasar.struts.lessconfig.config.rule.impl.ZeroConfigActionRuleImp
l"/>
<component name="zeroConfigActionFormRule"
class="org.seasar.struts.lessconfig.config.rule.impl.ZeroConfigActionFormRul
eImpl"/>
<component name="actionConfigCreator"
class="org.seasar.struts.lessconfig.autoregister.impl.ActionConfigCreatorImp
l"/>
<component name="actionFormConfigCreator"
class="org.seasar.struts.lessconfig.autoregister.impl.ActionFormConfigCreato
rImpl"/>
<component name="validatorCreator"
class="org.seasar.struts.lessconfig.autoregister.impl.ValidationCreatorImpl"
/>
<component name="strutsConfigRegister"
class="org.seasar.struts.lessconfig.autoregister.impl.StrutsConfigRegisterIm
pl"/>
<!-- Validator ConfigRegister Components -->
<component name="argsConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.ArgsConfigRegister
Impl">
<property name="bundle">null</property>
<property name="resource">true</property>
</component>
<component name="argConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.ArgConfigRegisterI
mpl">
<property name="bundle">null</property>
<property name="resource">true</property>
</component>
<component name="messageConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MessageConfigRegis
terImpl">
<property name="bundle">null</property>
<property name="resource">true</property>
</component>
<component name="dateConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.DateConfigRegister
Impl">
<property name="pattern">"yyyy/MM/dd"</property>
<property name="strict">false</property>
</component>
<component name="maskConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MaskConfigRegister
Impl"/>
<component name="maxlengthConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MaxlengthConfigReg
isterImpl"/>
<component name="minlengthConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MinlengthConfigReg
isterImpl"/>
<component name="maxbytelengthConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MaxbytelengthConfi
gRegisterImpl"/>
<component name="minbytelengthConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.MinbytelengthConfi
gRegisterImpl"/>
<component name="intRangeConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.IntRangeConfigRegi
sterImpl"/>
<component name="longRangeConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.LongRangeConfigReg
isterImpl"/>
<component name="floatRangeConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.FloatRangeConfigRe
gisterImpl"/>
<component name="doubleRangeConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.DoubleRangeConfigR
egisterImpl"/>
<component name="validatorFieldConfigRegister"
class="org.seasar.struts.lessconfig.validator.config.impl.ValidatorFieldConf
igRegisterImpl"/>
<!-- RequestProcessor -->
<component name="requestProcessor"
class="org.seasar.struts.processor.InternalS2RequestProcessor"
instance="prototype">
<aspect pointcut="processMultipart">
<component
class="org.seasar.struts.processor.ProcessMultipartInterceptor"/>
</aspect>
<aspect pointcut="processPath">
<component
class="org.seasar.struts.processor.ProcessPathInterceptor"/>
</aspect>
<aspect pointcut="processActionForm">
<component
class="org.seasar.struts.pojo.processor.ProcessPojoFormInterceptor"/>
</aspect>
<aspect pointcut="processValidate">
<component
class="org.seasar.framework.aop.interceptors.InterceptorChain">
<initMethod name="add"><arg><component
class="org.seasar.struts.pojo.processor.ProcessCancelledValidateInterceptor"
/></arg></initMethod>
<initMethod name="add"><arg><component
class="org.seasar.struts.pojo.processor.ProcessSetInputPathValidateIntercept
or"/></arg></initMethod>
</component>
</aspect>
<aspect pointcut="processPopulate">
<component
class="org.seasar.struts.pojo.processor.ProcessCheckboxPopulateInterceptor"/
>
</aspect>
<aspect pointcut="processActionCreate">
<component
class="org.seasar.framework.aop.interceptors.InterceptorChain">
<initMethod name="add"><arg><component
class="org.seasar.struts.pojo.processor.ProcessMethodBindingActionCreatorInt
erceptor"/></arg></initMethod>
<initMethod name="add"><arg><component
class="org.seasar.struts.pojo.processor.ProcessPojoActionCreateInterceptor"/
></arg></initMethod>
<initMethod name="add"><arg><component
class="org.seasar.struts.processor.ProcessActionCreateInterceptor"/></arg></
initMethod>
</component>
</aspect>
<aspect pointcut="processActionPerform">
<component
class="org.seasar.struts.pojo.processor.ProcessSetInputPathActionPerformInte
rceptor"/>
</aspect>
<aspect pointcut="doForward">
<component
class="org.seasar.struts.pojo.processor.DoSetInputPathForwardInterceptor"/>
</aspect>
</component>
<!-- validwhen -->
<component name="validwhenConfigRegister"
class="jp.go.XXXX.common.validater.ValidwhenConfigRegisterImpl" />
</components>
Seasar-user メーリングリストの案内