[Seasar-user:7652] Re: [S2Struts]同一サブアプリケーション配下にあるActionとFormがマッピングされない

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2007年 5月 16日 (水) 09:55:00 JST


岩崎です。
ご指示いただいた設定にて正しくマッピングされることを確認しました。

ありがとうございました。


----------------------------------------
On Wed, 16 May 2007 08:51:31 +0900
"Katsuhiko Nagashima" <[E-MAIL ADDRESS DELETED]> wrote:

> 永島です。
> 
> ActionとFormのデフォルトのマッピングを行う際にS2Containerを
> 利用しています。
> S2StrutsBlankのcreator.diconとcustomizer.diconに
> FormをS2Containerに登録する設定が抜けていました。
> 
> 以下の記述をそれぞれのdiconファイルに追加して試していただけないでしょうか?
> beta-3同様、name=top_topFormの設定がされると思います。
> 
> creator.dicon
> ----
>   <component class="org.seasar.struts.creator.FormCreator"/>
> ----
> 
> customizer.dicon
> ----
>   <component name="formCustomizer"
> class="org.seasar.framework.container.customizer.CustomizerChain"/>
> ----
> 
> 以上です。
> 
> 07/05/15 に [E-MAIL ADDRESS DELETED]<[E-MAIL ADDRESS DELETED]> さんは書きました:
> > 岩崎と申します。
> >
> > S2StrutsV1.3.0-RC1のS2StrutsBlankを使用して、
> > これまで作成したアプリケーションの動作を確認しているのですが、
> > サブアプリケーション配下にあるActionとFormのマッピングが
> > これまでと異なる挙動をしています。
> >
> > (1)
> > s2struts.diconのActionPathNamingRuleに
> > SubApplicationActionPathNamingRuleを指定
> > (2)
> > myapp.web.top.TopAction
> > myapp.web.top.TopForm
> > というクラス構成
> > (3)
> > index.jspに<html:form action="/top/top">を指定
> >
> > すると、
> > Form bean not specified on mapping form action : "/top/top"
> > というJSPエラーになります。
> >
> >
> > S2StrutsV1.3.0-beta3では、(1)の代わりに
> > [Seasar-user:5438]
> > http://ml.seasar.org/archives/seasar-user/2006-December/007353.html
> > の設定を行いました。
> > その際、(3)ではエラーになりませんでした。
> >
> >
> > ActionConfigのログ出力で、
> > ・beta-3では
> > auto register ActionConfig[cancellable=falsepath=/top/topvalidate=true,
> > name=top_topForm,scope=session,type=myapp.web.top.TopAction
> > ・RC1では
> > auto create ActionConfig[cancellable=false,path=/top/top,validate=true,
> > scope=session,type=myapp.web.top.TopAction
> > のように出力されます。「name=」が設定されていない状態です。
> >
> > また、
> > RC1で、Actionクラスに
> > @StrutsAction(name="topForm")
> > アノテーションを設定するとマッピングされますが、
> > Actionクラスに逐一マッピングの設定を書かなければならないので
> > これは行いたくないと考えています。
> >
> > 何か設定方法があるようでしたらご教授いただけますでしょうか。
> > よろしくお願い致します。
> > _______________________________________________
> > Seasar-user mailing list
> > [E-MAIL ADDRESS DELETED]
> > https://ml.seasar.org/mailman/listinfo/seasar-user
> >
> 
> 
> -- 
> Katsuhiko Nagashima
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user





Seasar-user メーリングリストの案内