Struts + Spring

Struts + Spring

ActionSupport


  • web.xml で <servlet> の前に次のエントリを加えておく

  <listener>
   <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener>

  • 設定ファイルが複数ある場合には
<context-param>
	<param-name>contextConfigLocation</param-name>
	<param-value>/WEB-INF/applicationContext*.xml</param-value>
</context-param>

<listener>
	<listener-class>
		org.springframework.web.context.ContextLoaderListener
	</listener-class>
</listener>

  • Action ではなく ActionSupport を Action のスーパークラスとする

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2006年08月14日 18:49
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。