質問編集履歴
1
コードの簡略化
title
CHANGED
File without changes
|
body
CHANGED
@@ -97,29 +97,8 @@
|
|
97
97
|
</form-beans>
|
98
98
|
|
99
99
|
<action-mappings>
|
100
|
-
<action
|
101
|
-
path = "/search"
|
102
|
-
type = "actioncontroller.StrutsAction"
|
103
|
-
name = "UserActionForm"
|
104
|
-
scope = "session">
|
105
|
-
<forward name = "select" path = "/jsp/Search.jsp"/>
|
106
|
-
<forward name = "error" path = "/jsp/result.jsp"/>
|
107
|
-
</action>
|
108
100
|
|
109
|
-
<action path = "/actioncontroller/Register" type = "actioncontroller.RegisterAction">
|
110
|
-
<forward name = "regist" path = "/jsp/registed.jsp"/>
|
111
|
-
<forward name = "error" path = "/jsp/result.jsp"/>
|
112
|
-
</action>
|
113
101
|
<action
|
114
|
-
path = "/search_2"
|
115
|
-
type = "actioncontroller.preUpdateAction"
|
116
|
-
name = "UserActionForm"
|
117
|
-
scope = "session">
|
118
|
-
<forward name = "preupdate" path = "/jsp/Update.jsp"/>
|
119
|
-
<forward name = "error" path = "/jsp/result.jsp"/>
|
120
|
-
</action>
|
121
|
-
|
122
|
-
<action
|
123
102
|
path = "/update" //ここで接続はできている
|
124
103
|
type = "actioncontroller.UpdateAction" //Actionクラス
|
125
104
|
name = "UserActionForm" //ActionForm
|
@@ -128,16 +107,6 @@
|
|
128
107
|
<forward name = "error" path = "/jsp/result.jsp"/>
|
129
108
|
</action>
|
130
109
|
|
131
|
-
<action
|
132
|
-
path = "/delete"
|
133
|
-
type = "actioncontroller.DeleteAction"
|
134
|
-
name = "UserActionForm"
|
135
|
-
scope = "session">
|
136
|
-
<forward name = "delete" path = "/jsp/delete_result.jsp"/>
|
137
|
-
<forward name = "error" path = "/jsp/result.jsp"/>
|
138
|
-
</action>
|
139
|
-
|
140
|
-
|
141
110
|
</action-mappings>
|
142
111
|
|
143
112
|
</struts-config>
|