質問編集履歴

1

コードの簡略化

2020/09/30 01:36

投稿

Y.Mamoru
Y.Mamoru

スコア47

test CHANGED
File without changes
test CHANGED
@@ -196,86 +196,24 @@
196
196
 
197
197
  <action-mappings>
198
198
 
199
+
200
+
199
201
  <action
200
202
 
201
- path = "/search"
203
+ path = "/update" //ここで接続はできている
202
-
204
+
203
- type = "actioncontroller.StrutsAction"
205
+ type = "actioncontroller.UpdateAction" //Actionクラス
204
-
206
+
205
- name = "UserActionForm"
207
+ name = "UserActionForm" //ActionForm
206
-
208
+
207
- scope = "session">
209
+ scope = "session">
208
-
209
- <forward name = "select" path = "/jsp/Search.jsp"/>
210
+
210
-
211
- <forward name = "error" path = "/jsp/result.jsp"/>
211
+ <forward name = "update" path = "/jsp/update_result.jsp"/>
212
-
213
- </action>
214
-
215
-
216
-
217
- <action path = "/actioncontroller/Register" type = "actioncontroller.RegisterAction">
218
-
219
- <forward name = "regist" path = "/jsp/registed.jsp"/>
220
212
 
221
213
  <forward name = "error" path = "/jsp/result.jsp"/>
222
214
 
223
215
  </action>
224
216
 
225
- <action
226
-
227
- path = "/search_2"
228
-
229
- type = "actioncontroller.preUpdateAction"
230
-
231
- name = "UserActionForm"
232
-
233
- scope = "session">
234
-
235
- <forward name = "preupdate" path = "/jsp/Update.jsp"/>
236
-
237
- <forward name = "error" path = "/jsp/result.jsp"/>
238
-
239
- </action>
240
-
241
-
242
-
243
- <action
244
-
245
- path = "/update" //ここで接続はできている
246
-
247
- type = "actioncontroller.UpdateAction" //Actionクラス
248
-
249
- name = "UserActionForm" //ActionForm
250
-
251
- scope = "session">
252
-
253
- <forward name = "update" path = "/jsp/update_result.jsp"/>
254
-
255
- <forward name = "error" path = "/jsp/result.jsp"/>
256
-
257
- </action>
258
-
259
-
260
-
261
- <action
262
-
263
- path = "/delete"
264
-
265
- type = "actioncontroller.DeleteAction"
266
-
267
- name = "UserActionForm"
268
-
269
- scope = "session">
270
-
271
- <forward name = "delete" path = "/jsp/delete_result.jsp"/>
272
-
273
- <forward name = "error" path = "/jsp/result.jsp"/>
274
-
275
- </action>
276
-
277
-
278
-
279
217
 
280
218
 
281
219
  </action-mappings>