| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「Struts2 設定ファイル」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
 
(同じ利用者による、間の1版が非表示)
1行目: 1行目:
==Struts2 設定ファイル==
+
==[[Struts2 設定ファイル]]==
[[Struts2]][[XWork2]]
+
[[Struts2]] | [[XWork2]] |
 
{{amazon|4839928444}}
 
{{amazon|4839928444}}
 
http://struts.apache.org/2.x/docs/configuration-files.html
 
http://struts.apache.org/2.x/docs/configuration-files.html
17行目: 17行目:
 
|いいえ
 
|いいえ
 
|/WEB-INF/classes/
 
|/WEB-INF/classes/
|主設定ファイル。result/view タイプ、action mappings、interceptors等を含む。
+
|主設定ファイル。result/[[vi]]ew タイプ、action mappings、interceptors等を含む。
 
|-
 
|-
 
|struts.properties
 
|struts.properties
27行目: 27行目:
 
|いいえ
 
|いいえ
 
|/WEB-INF/lib/struts2-core.jar
 
|/WEB-INF/lib/struts2-core.jar
|Strutsが提供するデフォルトの設定ファイル。
+
|[[Struts]]が提供するデフォルトの設定ファイル。
 
|-
 
|-
 
|struts-default.vm
 
|struts-default.vm
37行目: 37行目:
 
|いいえ
 
|いいえ
 
|At the root of a plugin JAR
 
|At the root of a plugin JAR
|プラグイン用オプション設定ファイル。フォーマットは struts.xml と同一。
+
|[[プラグイン]]用オプション設定ファイル。フォーマットは struts.xml と同一。
 
|-
 
|-
 
|velocity.properties
 
|velocity.properties

2020年2月16日 (日) 04:32時点における最新版

Struts2 設定ファイル

Struts2 | XWork2 |

http://struts.apache.org/2.x/docs/configuration-files.html

ファイル名 必須 webappからの相対位置 使用目的
web.xml はい /WEB-INF/ 配備記述子にフレームワークのコンポーネントを行う。
struts.xml いいえ /WEB-INF/classes/ 主設定ファイル。result/view タイプ、action mappings、interceptors等を含む。
struts.properties いいえ /WEB-INF/classes/ フレームワークプロパティ
struts-default.xml いいえ /WEB-INF/lib/struts2-core.jar Strutsが提供するデフォルトの設定ファイル。
struts-default.vm いいえ /WEB-INF/classes/ velocity.propertiesから参照されるデフォルトマクロ。
struts-plugin.xml いいえ At the root of a plugin JAR プラグイン用オプション設定ファイル。フォーマットは struts.xml と同一。
velocity.properties いいえ /WEB-INF/classes/ デフォルトのVelocity設定を上書きする。