質問編集履歴
6
情報追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
SpringBootの
|
1
|
+
SpringBootのエラーメッセージ表示方法
|
test
CHANGED
@@ -4,32 +4,18 @@
|
|
4
4
|
|
5
5
|
現在SpringBootの学習に着手したのですが、初歩で転びました。
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
|
11
|
-
|
9
|
+
始めたばかりなのでうまく伝えられないかもしれませんが、
|
12
|
-
|
10
|
+
|
13
|
-
r
|
11
|
+
rIdをプライマリキーに登録画面を作成しています。
|
14
|
-
|
12
|
+
|
15
|
-
|
13
|
+
プライマリキー違反でのエラー画面を表示したいのですが
|
16
14
|
|
17
15
|
localhost:8080/にアクセスしてもWhitelabelErrorPage400 となり、望んでいる画面になりません。。
|
18
16
|
|
19
17
|
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
もしかしたら
|
24
|
-
|
25
|
-
selectSQL09(@Param("registId") RegistForm registId)を
|
26
|
-
|
27
|
-
selectSQL09(@Param("registId") String registId)に変えたらいけるのかなと思うのですが
|
28
|
-
|
29
|
-
Controllerの登録のところでString registIdにするとエラーがでてしまうためできません。
|
30
|
-
|
31
|
-
|
32
|
-
|
33
19
|
お力添えをどうぞよろしくお願い致します。
|
34
20
|
|
35
21
|
|
@@ -42,9 +28,9 @@
|
|
42
28
|
|
43
29
|
There was an unexpected error (type=Bad Request, status=400).
|
44
30
|
|
45
|
-
Required R
|
31
|
+
Required RForm parameter 'rId' is not present
|
46
|
-
|
32
|
+
|
47
|
-
org.springframework.web.bind.MissingServletRequestParameterException: Required R
|
33
|
+
org.springframework.web.bind.MissingServletRequestParameterException: Required RForm parameter 'rId' is not present
|
48
34
|
|
49
35
|
```
|
50
36
|
|
@@ -58,17 +44,17 @@
|
|
58
44
|
|
59
45
|
/** プライマリキー違反表示 **/
|
60
46
|
|
61
|
-
@Select("SELECT r
|
47
|
+
@Select("SELECT rid FROM TBL_R WHERE rid=#{rId}")
|
62
|
-
|
48
|
+
|
63
|
-
List<String> selectSQL0
|
49
|
+
List<String> selectSQL02(@Param("rId") String rId);
|
64
50
|
|
65
51
|
|
66
52
|
|
67
53
|
/** 登録 **/
|
68
54
|
|
69
|
-
@Insert("INSERT INTO TBL_
|
70
|
-
|
71
|
-
String insertSQL0
|
55
|
+
@Insert("INSERT INTO TBL_R (regist_id,regist_name,regist_tel,regist_postalcode,regist_address1, VALUES (#{rId},#{rName},#{rTel},#{rPostal},#{rA1},)")
|
56
|
+
|
57
|
+
String insertSQL01(@Param("rId") String rId, @Param("rName") String rName, @Param("rTel") String rTel, @Param("rPostal") String rPostal, @Param("rA1") String rA1;
|
72
58
|
|
73
59
|
|
74
60
|
|
@@ -82,13 +68,11 @@
|
|
82
68
|
|
83
69
|
```ここに言語名を入力
|
84
70
|
|
85
|
-
////////////登録
|
86
|
-
|
87
|
-
@PostMapping("/
|
71
|
+
@PostMapping("/viewComplete")
|
88
|
-
|
89
|
-
|
90
|
-
|
72
|
+
|
73
|
+
|
74
|
+
|
91
|
-
public String view
|
75
|
+
public String viewComplete(Model model, ReForm rId) {
|
92
76
|
|
93
77
|
|
94
78
|
|
@@ -96,7 +80,7 @@
|
|
96
80
|
|
97
81
|
|
98
82
|
|
99
|
-
list = service.get
|
83
|
+
list = service.getId(registId.get_id());
|
100
84
|
|
101
85
|
|
102
86
|
|
@@ -110,7 +94,7 @@
|
|
110
94
|
|
111
95
|
|
112
96
|
|
113
|
-
return "
|
97
|
+
return "information/erorr" ;
|
114
98
|
|
115
99
|
}
|
116
100
|
|
@@ -118,15 +102,13 @@
|
|
118
102
|
|
119
103
|
String regist1 = new String();
|
120
104
|
|
121
|
-
|
122
|
-
|
123
|
-
|
105
|
+
|
124
|
-
|
106
|
+
|
125
|
-
re
|
107
|
+
result = service.setlist(rId);
|
126
108
|
|
127
109
|
|
128
110
|
|
129
|
-
return "
|
111
|
+
return "information/complete";
|
130
112
|
|
131
113
|
}
|
132
114
|
|
@@ -134,7 +116,7 @@
|
|
134
116
|
|
135
117
|
|
136
118
|
|
137
|
-
### Sr
|
119
|
+
### Service.java
|
138
120
|
|
139
121
|
|
140
122
|
|
@@ -142,13 +124,13 @@
|
|
142
124
|
|
143
125
|
/**
|
144
126
|
|
145
|
-
*
|
127
|
+
* 情報テーブルに情報の登録
|
146
|
-
|
128
|
+
|
147
|
-
* @return
|
129
|
+
* @return 登録
|
148
130
|
|
149
131
|
*/
|
150
132
|
|
151
|
-
public List<String> get
|
133
|
+
public List<String> getId(String rId) {
|
152
134
|
|
153
135
|
|
154
136
|
|
@@ -156,7 +138,7 @@
|
|
156
138
|
|
157
139
|
|
158
140
|
|
159
|
-
result = sqlMapper.selectSQL09(r
|
141
|
+
result = sqlMapper.selectSQL09(rId);
|
160
142
|
|
161
143
|
|
162
144
|
|
@@ -166,7 +148,7 @@
|
|
166
148
|
|
167
149
|
|
168
150
|
|
169
|
-
public String set
|
151
|
+
public String setList(ReForm reForm) {
|
170
152
|
|
171
153
|
|
172
154
|
|
@@ -174,7 +156,7 @@
|
|
174
156
|
|
175
157
|
|
176
158
|
|
177
|
-
result = sqlMapper.insertSQL0
|
159
|
+
result = sqlMapper.insertSQL01(
|
178
160
|
|
179
161
|
|
180
162
|
|
@@ -236,27 +218,17 @@
|
|
236
218
|
|
237
219
|
<div style="text-align: center">
|
238
220
|
|
239
|
-
<h2 style="text-align: center">情報登録</h2>
|
221
|
+
<h2 style="text-align: center">情報登録</h2>
|
240
|
-
|
241
|
-
|
222
|
+
|
242
|
-
|
243
|
-
|
223
|
+
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
224
|
+
|
249
|
-
<form th:action="@{/
|
225
|
+
<form th:action="@{/viewComplete}"
|
250
|
-
|
226
|
+
|
251
|
-
th:object="${re
|
227
|
+
th:object="${reForm}" method="POST" >
|
252
228
|
|
253
229
|
|
254
230
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
231
|
+
|
260
232
|
|
261
233
|
<table style="margin: 0 auto">
|
262
234
|
|
@@ -266,7 +238,7 @@
|
|
266
238
|
|
267
239
|
<td style="width: 60">ID</td>
|
268
240
|
|
269
|
-
<td><input type=text size="30" name="re
|
241
|
+
<td><input type=text size="30" name="re_id"></input></td>
|
270
242
|
|
271
243
|
|
272
244
|
|
@@ -276,9 +248,9 @@
|
|
276
248
|
|
277
249
|
<tr>
|
278
250
|
|
279
|
-
<td style="width: 60">
|
251
|
+
<td style="width: 60">名前</td>
|
280
|
-
|
252
|
+
|
281
|
-
<td><input type=text size="30" name="re
|
253
|
+
<td><input type=text size="30" name="re_name"></input></td>
|
282
254
|
|
283
255
|
</tr>
|
284
256
|
|
@@ -288,31 +260,9 @@
|
|
288
260
|
|
289
261
|
<td style="width: 70">電話番号</td>
|
290
262
|
|
291
|
-
<td><input type=tel size="30" name="re
|
263
|
+
<td><input type=tel size="30" name="re_tel"></input></td>
|
292
|
-
|
264
|
+
|
293
|
-
</tr>
|
265
|
+
</tr>
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
<tr>
|
298
|
-
|
299
|
-
<td style="width: 70">FAX</td>
|
300
|
-
|
301
|
-
<td><input type=tel size="30" name="regist_fax" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
302
|
-
|
303
|
-
</tr>
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
<tr>
|
308
|
-
|
309
|
-
<td style="width: 70">代表者</td>
|
310
|
-
|
311
|
-
<td><input type=text size="30" name="regist_representative" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
312
|
-
|
313
|
-
</tr>
|
314
|
-
|
315
|
-
|
316
266
|
|
317
267
|
|
318
268
|
|
@@ -320,9 +270,7 @@
|
|
320
270
|
|
321
271
|
<td style="width: 70">郵便番号</td>
|
322
272
|
|
323
|
-
<td><input type=text size="30" name="re
|
273
|
+
<td><input type=text size="30" name="re_postalcode"></input></td>
|
324
|
-
|
325
|
-
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
326
274
|
|
327
275
|
</tr>
|
328
276
|
|
@@ -332,43 +280,9 @@
|
|
332
280
|
|
333
281
|
<td style="width: 70">住所1</td>
|
334
282
|
|
335
|
-
<td><input type=text size="30" name="re
|
283
|
+
<td><input type=text size="30" name="re_address1"></input></td>
|
336
|
-
|
284
|
+
|
337
|
-
</tr>
|
285
|
+
</tr>
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
<tr>
|
344
|
-
|
345
|
-
<td style="width: 70">住所2</td>
|
346
|
-
|
347
|
-
<td><input type=text size="30" name="regist_address2"></input></td>
|
348
|
-
|
349
|
-
</tr>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
<tr>
|
354
|
-
|
355
|
-
<td style="width: 70">住所3</td>
|
356
|
-
|
357
|
-
<td><input type=text size="30" name="regist_address3"></input></td>
|
358
|
-
|
359
|
-
</tr>
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
<tr>
|
364
|
-
|
365
|
-
<td style="width: 70">住所4</td>
|
366
|
-
|
367
|
-
<td><input type=text size="30" name="regist_address4"></input></td>
|
368
|
-
|
369
|
-
</tr>
|
370
|
-
|
371
|
-
|
372
286
|
|
373
287
|
|
374
288
|
|
@@ -382,40 +296,24 @@
|
|
382
296
|
|
383
297
|
<input type="submit" value="登録"></td>
|
384
298
|
|
299
|
+
|
300
|
+
|
385
|
-
|
301
|
+
</tr>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</table>
|
386
308
|
|
387
309
|
|
388
310
|
|
389
|
-
|
390
|
-
|
391
|
-
</tr>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
</table>
|
404
|
-
|
405
|
-
|
406
|
-
|
407
311
|
<br><br>
|
408
312
|
|
409
|
-
<a th:href="@{/
|
313
|
+
<a th:href="@{/viewInformationList}">情報一覧へ戻る</a>
|
410
314
|
|
411
315
|
</form>
|
412
316
|
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
317
|
</div>
|
420
318
|
|
421
319
|
</body>
|
@@ -428,7 +326,7 @@
|
|
428
326
|
|
429
327
|
|
430
328
|
|
431
|
-
###
|
329
|
+
### complete.html
|
432
330
|
|
433
331
|
|
434
332
|
|
@@ -444,7 +342,7 @@
|
|
444
342
|
|
445
343
|
|
446
344
|
|
447
|
-
<title>登録完了
|
345
|
+
<title>登録完了</title>
|
448
346
|
|
449
347
|
</head>
|
450
348
|
|
@@ -454,28 +352,16 @@
|
|
454
352
|
|
455
353
|
<h2 style="text-align: center">登録完了</h2>
|
456
354
|
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
<p><a th:href="@{/viewInformationList}">情報一覧へ戻る</a></p>
|
360
|
+
|
457
361
|
|
458
362
|
|
459
|
-
<br>
|
460
|
-
|
461
|
-
企業情報の登録が完了しました。
|
462
|
-
|
463
|
-
企業情報一覧へ戻るを押してご確認ください。
|
464
|
-
|
465
|
-
|
466
|
-
|
467
363
|
|
468
364
|
|
469
|
-
|
470
|
-
|
471
|
-
<br><br><br><br><br><br><br>
|
472
|
-
|
473
|
-
<p><a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a></p>
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
365
|
</div>
|
480
366
|
|
481
367
|
</body>
|
@@ -486,53 +372,37 @@
|
|
486
372
|
|
487
373
|
```
|
488
374
|
|
489
|
-
### Re
|
375
|
+
### ReForm.java
|
490
|
-
|
491
|
-
|
492
|
-
|
376
|
+
|
377
|
+
|
378
|
+
|
493
|
-
```
|
379
|
+
```
|
494
|
-
|
380
|
+
|
495
|
-
package jp.co.lain.
|
381
|
+
package jp.co.lain.information;
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
382
|
+
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
383
|
+
|
504
384
|
|
505
385
|
|
506
386
|
|
507
387
|
@Data
|
508
388
|
|
509
|
-
public class Re
|
389
|
+
public class ReForm {
|
510
390
|
|
511
391
|
|
512
392
|
|
513
393
|
|
514
394
|
|
515
|
-
private String re
|
395
|
+
private String re_id;
|
516
|
-
|
396
|
+
|
517
|
-
private String re
|
397
|
+
private String re_name;
|
518
|
-
|
398
|
+
|
519
|
-
private String re
|
399
|
+
private String re_tel;
|
520
|
-
|
521
|
-
|
400
|
+
|
522
|
-
|
523
|
-
private String regist_representative;
|
524
|
-
|
525
|
-
private String re
|
401
|
+
private String re_postalcode;
|
526
|
-
|
402
|
+
|
527
|
-
private String re
|
403
|
+
private String re_address1;
|
528
|
-
|
529
|
-
|
404
|
+
|
530
|
-
|
531
|
-
|
405
|
+
|
532
|
-
|
533
|
-
private String regist_address4;
|
534
|
-
|
535
|
-
private Timestamp create_date;
|
536
406
|
|
537
407
|
}
|
538
408
|
|
5
SQL,Controller,Sreviceの訂正 10:35現在
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,15 +60,15 @@
|
|
60
60
|
|
61
61
|
@Select("SELECT regist_id FROM TBL_COMPANY WHERE regist_id=#{registId}")
|
62
62
|
|
63
|
-
|
63
|
+
List<String> selectSQL09(@Param("registId") String registId);
|
64
64
|
|
65
65
|
|
66
66
|
|
67
67
|
/** 登録 **/
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
@Insert("INSERT INTO TBL_COMPANY (regist_id,regist_name,regist_representative,regist_tel,regist_fax,regist_postalcode,regist_address1,regist_address2,regist_address3,regist_address4) VALUES (#{rId},#{rName},#{rRepre},#{rTel},#{rFax},#{rPostal},#{rA1},#{rA2},#{rA3},#{rA4})")
|
70
|
+
|
71
|
+
String insertSQL03(@Param("rId") String rId, @Param("rName") String rName, @Param("rTel") String rTel, @Param("rFax") String rFax, @Param("rRepre") String rRepre, @Param("rPostal") String rPostal, @Param("rA1") String rA1, @Param("rA2") String rA2, @Param("rA3") String rA3, @Param("rA4") String rA4);
|
72
72
|
|
73
73
|
|
74
74
|
|
@@ -82,17 +82,23 @@
|
|
82
82
|
|
83
83
|
```ここに言語名を入力
|
84
84
|
|
85
|
+
////////////登録
|
86
|
+
|
85
|
-
@PostMapping("/viewRegistComplete1")
|
87
|
+
@PostMapping("/CIMS/viewRegistComplete1")
|
86
|
-
|
88
|
+
|
89
|
+
|
90
|
+
|
87
|
-
public String viewRegistComplete1(Model model,
|
91
|
+
public String viewRegistComplete1(Model model, RegistForm registId) {
|
88
92
|
|
89
93
|
|
90
94
|
|
91
|
-
List<
|
95
|
+
List<String> list = new ArrayList<String>();
|
92
|
-
|
93
|
-
|
94
|
-
|
96
|
+
|
97
|
+
|
98
|
+
|
95
|
-
list = service.getCheckId(registId);
|
99
|
+
list = service.getCheckId(registId.getRegist_id());
|
100
|
+
|
101
|
+
|
96
102
|
|
97
103
|
|
98
104
|
|
@@ -100,430 +106,412 @@
|
|
100
106
|
|
101
107
|
|
102
108
|
|
103
|
-
model.addAttribute("errMessage", "登録できません。");
|
109
|
+
model.addAttribute("errMessage", "登録できません。");
|
104
|
-
|
110
|
+
|
111
|
+
|
112
|
+
|
105
|
-
return
|
113
|
+
return "companyInformation/registErorr" ;
|
106
114
|
|
107
115
|
}
|
108
116
|
|
109
|
-
|
117
|
+
|
110
118
|
|
111
119
|
String regist1 = new String();
|
112
120
|
|
121
|
+
|
122
|
+
|
123
|
+
//ここまでできてる
|
124
|
+
|
125
|
+
regist1 = service.setRegistList(registId);
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
return "companyInformation/registComplete";
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
### Srevice.java
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
```ここに言語名を入力
|
142
|
+
|
143
|
+
/**
|
144
|
+
|
145
|
+
* 会員情報テーブルに新規企業情報の登録
|
146
|
+
|
147
|
+
* @return 企業情報登録
|
148
|
+
|
149
|
+
*/
|
150
|
+
|
151
|
+
public List<String> getCheckId(String registId) {
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
List<String> result = new ArrayList<String>();
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
result = sqlMapper.selectSQL09(registId);
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
return result;
|
164
|
+
|
165
|
+
}
|
166
|
+
|
113
167
|
|
114
168
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
169
|
+
public String setRegistList(RegistForm registForm) {
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
String result = new String();
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
result = sqlMapper.insertSQL03(
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
registForm.getRegist_id(),
|
182
|
+
|
183
|
+
registForm.getRegist_name(),
|
184
|
+
|
185
|
+
registForm.getRegist_tel(),
|
186
|
+
|
187
|
+
registForm.getRegist_fax(),
|
188
|
+
|
189
|
+
registForm.getRegist_representative(),
|
190
|
+
|
191
|
+
registForm.getRegist_postalcode(),
|
192
|
+
|
193
|
+
registForm.getRegist_address1(),
|
194
|
+
|
195
|
+
registForm.getRegist_address2(),
|
196
|
+
|
197
|
+
registForm.getRegist_address3(),
|
198
|
+
|
199
|
+
registForm.getRegist_address4());
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
return result;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
```
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
### regist.html
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
```
|
218
|
+
|
219
|
+
<!doctype html>
|
220
|
+
|
221
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
222
|
+
|
223
|
+
<head>
|
224
|
+
|
225
|
+
<meta charset="UTF-8">
|
226
|
+
|
227
|
+
<title>情報登録画面</title>
|
228
|
+
|
229
|
+
<script src=“https://yubinbango.github..io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
230
|
+
|
231
|
+
</head>
|
232
|
+
|
233
|
+
<body>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<div style="text-align: center">
|
238
|
+
|
239
|
+
<h2 style="text-align: center">情報登録</h2>
|
240
|
+
|
241
|
+
<hr style="height: 3; background =color: #0000FF" />
|
242
|
+
|
243
|
+
<br> 登録する情報を入力してください。
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<form th:action="@{/CIMS/viewRegistComplete1}"
|
250
|
+
|
251
|
+
th:object="${registForm}" method="POST" >
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
166
258
|
|
167
259
|
|
168
260
|
|
261
|
+
<table style="margin: 0 auto">
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<tr>
|
266
|
+
|
267
|
+
<td style="width: 60">ID</td>
|
268
|
+
|
269
|
+
<td><input type=text size="30" name="regist_id" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</tr>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<tr>
|
278
|
+
|
279
|
+
<td style="width: 60">企業名</td>
|
280
|
+
|
281
|
+
<td><input type=text size="30" name="regist_name" placeholder="例 : 株式会社A" required></input></td>
|
282
|
+
|
283
|
+
</tr>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<tr>
|
288
|
+
|
289
|
+
<td style="width: 70">電話番号</td>
|
290
|
+
|
291
|
+
<td><input type=tel size="30" name="regist_tel" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 090-1234-5678"></input></td>
|
292
|
+
|
293
|
+
</tr>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<tr>
|
298
|
+
|
299
|
+
<td style="width: 70">FAX</td>
|
300
|
+
|
301
|
+
<td><input type=tel size="30" name="regist_fax" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
302
|
+
|
303
|
+
</tr>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<tr>
|
308
|
+
|
309
|
+
<td style="width: 70">代表者</td>
|
310
|
+
|
311
|
+
<td><input type=text size="30" name="regist_representative" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
312
|
+
|
313
|
+
</tr>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<tr>
|
320
|
+
|
321
|
+
<td style="width: 70">郵便番号</td>
|
322
|
+
|
323
|
+
<td><input type=text size="30" name="regist_postalcode" pattern="\d{3}-\d{4}" title="3桁の数字、ハイフン、4桁の数字の順でご入力ください。" placeholder="例 : 123-4567"
|
324
|
+
|
325
|
+
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
326
|
+
|
327
|
+
</tr>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<tr>
|
332
|
+
|
333
|
+
<td style="width: 70">住所1</td>
|
334
|
+
|
335
|
+
<td><input type=text size="30" name="regist_address1" placeholder="例 : 埼玉県さいたま市大宮区1-1-1"></input></td>
|
336
|
+
|
337
|
+
</tr>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
<tr>
|
344
|
+
|
345
|
+
<td style="width: 70">住所2</td>
|
346
|
+
|
347
|
+
<td><input type=text size="30" name="regist_address2"></input></td>
|
348
|
+
|
349
|
+
</tr>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
<tr>
|
354
|
+
|
355
|
+
<td style="width: 70">住所3</td>
|
356
|
+
|
357
|
+
<td><input type=text size="30" name="regist_address3"></input></td>
|
358
|
+
|
359
|
+
</tr>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
<tr>
|
364
|
+
|
365
|
+
<td style="width: 70">住所4</td>
|
366
|
+
|
367
|
+
<td><input type=text size="30" name="regist_address4"></input></td>
|
368
|
+
|
369
|
+
</tr>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
<tr>
|
378
|
+
|
379
|
+
|
380
|
+
|
169
|
-
|
381
|
+
<td colspan=2 style="text-align: center">
|
382
|
+
|
383
|
+
<input type="submit" value="登録"></td>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
</tr>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</table>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
<br><br>
|
408
|
+
|
409
|
+
<a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a>
|
410
|
+
|
411
|
+
</form>
|
170
412
|
|
171
413
|
|
172
414
|
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
</div>
|
420
|
+
|
421
|
+
</body>
|
422
|
+
|
423
|
+
</html>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
```
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
### registComplete.html
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
```
|
436
|
+
|
437
|
+
<!doctype html>
|
438
|
+
|
439
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
440
|
+
|
441
|
+
<head>
|
442
|
+
|
173
|
-
|
443
|
+
<meta charset="UTF-8">
|
444
|
+
|
445
|
+
|
446
|
+
|
174
|
-
|
447
|
+
<title>登録完了画面</title>
|
448
|
+
|
175
|
-
|
449
|
+
</head>
|
450
|
+
|
176
|
-
|
451
|
+
<body>
|
452
|
+
|
453
|
+
<div style="text-align: center">
|
454
|
+
|
455
|
+
<h2 style="text-align: center">登録完了</h2>
|
456
|
+
|
457
|
+
|
458
|
+
|
177
|
-
|
459
|
+
<br>
|
460
|
+
|
178
|
-
|
461
|
+
企業情報の登録が完了しました。
|
462
|
+
|
463
|
+
企業情報一覧へ戻るを押してご確認ください。
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
<br><br><br><br><br><br><br>
|
472
|
+
|
473
|
+
<p><a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a></p>
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
</div>
|
480
|
+
|
481
|
+
</body>
|
482
|
+
|
483
|
+
</html>
|
484
|
+
|
485
|
+
|
486
|
+
|
179
|
-
|
487
|
+
```
|
488
|
+
|
489
|
+
### RegistForm.java
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
```
|
494
|
+
|
495
|
+
package jp.co.lain.companyInformation;
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
import java.sql.Timestamp;
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
import lombok.Data;
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
@Data
|
508
|
+
|
509
|
+
public class RegistForm {
|
510
|
+
|
511
|
+
|
180
512
|
|
181
513
|
|
182
514
|
|
183
|
-
public String setRegistList(RegistForm registForm) {
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
String result = new String();
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
result = sqlMapper.insertSQL03(
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
registForm.getRegist_id(),
|
196
|
-
|
197
|
-
registForm.getRegist_name(),
|
198
|
-
|
199
|
-
registForm.getRegist_tel(),
|
200
|
-
|
201
|
-
registForm.getRegist_fax(),
|
202
|
-
|
203
|
-
registForm.getRegist_representative(),
|
204
|
-
|
205
|
-
registForm.getRegist_postalcode(),
|
206
|
-
|
207
|
-
registForm.getRegist_address1(),
|
208
|
-
|
209
|
-
registForm.getRegist_address2(),
|
210
|
-
|
211
|
-
registForm.getRegist_address3(),
|
212
|
-
|
213
|
-
registForm.getRegist_address4());
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
return result;
|
218
|
-
|
219
|
-
}
|
220
|
-
|
221
|
-
```
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
### regist.html
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
```
|
230
|
-
|
231
|
-
<!doctype html>
|
232
|
-
|
233
|
-
<html xmlns:th="http://www.thymeleaf.org">
|
234
|
-
|
235
|
-
<head>
|
236
|
-
|
237
|
-
<meta charset="UTF-8">
|
238
|
-
|
239
|
-
<title>情報登録画面</title>
|
240
|
-
|
241
|
-
<script src=“https://yubinbango.github..io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
242
|
-
|
243
|
-
</head>
|
244
|
-
|
245
|
-
<body>
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
<div style="text-align: center">
|
250
|
-
|
251
|
-
<h2 style="text-align: center">情報登録</h2>
|
252
|
-
|
253
|
-
<hr style="height: 3; background =color: #0000FF" />
|
254
|
-
|
255
|
-
<br> 登録する情報を入力してください。
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<form th:action="@{/CIMS/viewRegistComplete1}"
|
262
|
-
|
263
|
-
th:object="${registForm}" method="POST" >
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
<table style="margin: 0 auto">
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
<tr>
|
278
|
-
|
279
|
-
<td style="width: 60">ID</td>
|
280
|
-
|
281
|
-
<td><input type=text size="30" name="regist_id" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
</tr>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
<tr>
|
290
|
-
|
291
|
-
<td style="width: 60">企業名</td>
|
292
|
-
|
293
|
-
<td><input type=text size="30" name="regist_name" placeholder="例 : 株式会社A" required></input></td>
|
294
|
-
|
295
|
-
</tr>
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<tr>
|
300
|
-
|
301
|
-
<td style="width: 70">電話番号</td>
|
302
|
-
|
303
|
-
<td><input type=tel size="30" name="regist_tel" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 090-1234-5678"></input></td>
|
304
|
-
|
305
|
-
</tr>
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
<tr>
|
310
|
-
|
311
|
-
<td style="width: 70">FAX</td>
|
312
|
-
|
313
|
-
<td><input type=tel size="30" name="regist_fax" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
314
|
-
|
315
|
-
</tr>
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
<tr>
|
320
|
-
|
321
|
-
<td style="width: 70">代表者</td>
|
322
|
-
|
323
|
-
<td><input type=text size="30" name="regist_representative" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
324
|
-
|
325
|
-
</tr>
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
<tr>
|
332
|
-
|
333
|
-
<td style="width: 70">郵便番号</td>
|
334
|
-
|
335
|
-
<td><input type=text size="30" name="regist_postalcode" pattern="\d{3}-\d{4}" title="3桁の数字、ハイフン、4桁の数字の順でご入力ください。" placeholder="例 : 123-4567"
|
336
|
-
|
337
|
-
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
338
|
-
|
339
|
-
</tr>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
<tr>
|
344
|
-
|
345
|
-
<td style="width: 70">住所1</td>
|
346
|
-
|
347
|
-
<td><input type=text size="30" name="regist_address1" placeholder="例 : 埼玉県さいたま市大宮区1-1-1"></input></td>
|
348
|
-
|
349
|
-
</tr>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
<tr>
|
356
|
-
|
357
|
-
<td style="width: 70">住所2</td>
|
358
|
-
|
359
|
-
<td><input type=text size="30" name="regist_address2"></input></td>
|
360
|
-
|
361
|
-
</tr>
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
<tr>
|
366
|
-
|
367
|
-
<td style="width: 70">住所3</td>
|
368
|
-
|
369
|
-
<td><input type=text size="30" name="regist_address3"></input></td>
|
370
|
-
|
371
|
-
</tr>
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
<tr>
|
376
|
-
|
377
|
-
<td style="width: 70">住所4</td>
|
378
|
-
|
379
|
-
<td><input type=text size="30" name="regist_address4"></input></td>
|
380
|
-
|
381
|
-
</tr>
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
<tr>
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
<td colspan=2 style="text-align: center">
|
394
|
-
|
395
|
-
<input type="submit" value="登録"></td>
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
</tr>
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
</table>
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
<br><br>
|
420
|
-
|
421
|
-
<a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a>
|
422
|
-
|
423
|
-
</form>
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
</div>
|
432
|
-
|
433
|
-
</body>
|
434
|
-
|
435
|
-
</html>
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
```
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
### registComplete.html
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
```
|
448
|
-
|
449
|
-
<!doctype html>
|
450
|
-
|
451
|
-
<html xmlns:th="http://www.thymeleaf.org">
|
452
|
-
|
453
|
-
<head>
|
454
|
-
|
455
|
-
<meta charset="UTF-8">
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
<title>登録完了画面</title>
|
460
|
-
|
461
|
-
</head>
|
462
|
-
|
463
|
-
<body>
|
464
|
-
|
465
|
-
<div style="text-align: center">
|
466
|
-
|
467
|
-
<h2 style="text-align: center">登録完了</h2>
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
<br>
|
472
|
-
|
473
|
-
企業情報の登録が完了しました。
|
474
|
-
|
475
|
-
企業情報一覧へ戻るを押してご確認ください。
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
<br><br><br><br><br><br><br>
|
484
|
-
|
485
|
-
<p><a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a></p>
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
</div>
|
492
|
-
|
493
|
-
</body>
|
494
|
-
|
495
|
-
</html>
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
```
|
500
|
-
|
501
|
-
### RegistForm.java
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
```
|
506
|
-
|
507
|
-
package jp.co.lain.companyInformation;
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
import java.sql.Timestamp;
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
import lombok.Data;
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
@Data
|
520
|
-
|
521
|
-
public class RegistForm {
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
515
|
private String regist_id;
|
528
516
|
|
529
517
|
private String regist_name;
|
4
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
-
### Controller
|
79
|
+
### Controller.java
|
80
80
|
|
81
81
|
|
82
82
|
|
@@ -124,7 +124,7 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
### Srevice
|
127
|
+
### Srevice.java
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -497,3 +497,57 @@
|
|
497
497
|
|
498
498
|
|
499
499
|
```
|
500
|
+
|
501
|
+
### RegistForm.java
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
```
|
506
|
+
|
507
|
+
package jp.co.lain.companyInformation;
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
import java.sql.Timestamp;
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
import lombok.Data;
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
@Data
|
520
|
+
|
521
|
+
public class RegistForm {
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
private String regist_id;
|
528
|
+
|
529
|
+
private String regist_name;
|
530
|
+
|
531
|
+
private String regist_tel;
|
532
|
+
|
533
|
+
private String regist_fax;
|
534
|
+
|
535
|
+
private String regist_representative;
|
536
|
+
|
537
|
+
private String regist_postalcode;
|
538
|
+
|
539
|
+
private String regist_address1;
|
540
|
+
|
541
|
+
private String regist_address2;
|
542
|
+
|
543
|
+
private String regist_address3;
|
544
|
+
|
545
|
+
private String regist_address4;
|
546
|
+
|
547
|
+
private Timestamp create_date;
|
548
|
+
|
549
|
+
}
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
```
|
3
ページの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -219,3 +219,281 @@
|
|
219
219
|
}
|
220
220
|
|
221
221
|
```
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
### regist.html
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
```
|
230
|
+
|
231
|
+
<!doctype html>
|
232
|
+
|
233
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
234
|
+
|
235
|
+
<head>
|
236
|
+
|
237
|
+
<meta charset="UTF-8">
|
238
|
+
|
239
|
+
<title>情報登録画面</title>
|
240
|
+
|
241
|
+
<script src=“https://yubinbango.github..io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
242
|
+
|
243
|
+
</head>
|
244
|
+
|
245
|
+
<body>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<div style="text-align: center">
|
250
|
+
|
251
|
+
<h2 style="text-align: center">情報登録</h2>
|
252
|
+
|
253
|
+
<hr style="height: 3; background =color: #0000FF" />
|
254
|
+
|
255
|
+
<br> 登録する情報を入力してください。
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<form th:action="@{/CIMS/viewRegistComplete1}"
|
262
|
+
|
263
|
+
th:object="${registForm}" method="POST" >
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<table style="margin: 0 auto">
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<tr>
|
278
|
+
|
279
|
+
<td style="width: 60">ID</td>
|
280
|
+
|
281
|
+
<td><input type=text size="30" name="regist_id" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
</tr>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<tr>
|
290
|
+
|
291
|
+
<td style="width: 60">企業名</td>
|
292
|
+
|
293
|
+
<td><input type=text size="30" name="regist_name" placeholder="例 : 株式会社A" required></input></td>
|
294
|
+
|
295
|
+
</tr>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<tr>
|
300
|
+
|
301
|
+
<td style="width: 70">電話番号</td>
|
302
|
+
|
303
|
+
<td><input type=tel size="30" name="regist_tel" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 090-1234-5678"></input></td>
|
304
|
+
|
305
|
+
</tr>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
<tr>
|
310
|
+
|
311
|
+
<td style="width: 70">FAX</td>
|
312
|
+
|
313
|
+
<td><input type=tel size="30" name="regist_fax" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
314
|
+
|
315
|
+
</tr>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<tr>
|
320
|
+
|
321
|
+
<td style="width: 70">代表者</td>
|
322
|
+
|
323
|
+
<td><input type=text size="30" name="regist_representative" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
324
|
+
|
325
|
+
</tr>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<tr>
|
332
|
+
|
333
|
+
<td style="width: 70">郵便番号</td>
|
334
|
+
|
335
|
+
<td><input type=text size="30" name="regist_postalcode" pattern="\d{3}-\d{4}" title="3桁の数字、ハイフン、4桁の数字の順でご入力ください。" placeholder="例 : 123-4567"
|
336
|
+
|
337
|
+
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
338
|
+
|
339
|
+
</tr>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
<tr>
|
344
|
+
|
345
|
+
<td style="width: 70">住所1</td>
|
346
|
+
|
347
|
+
<td><input type=text size="30" name="regist_address1" placeholder="例 : 埼玉県さいたま市大宮区1-1-1"></input></td>
|
348
|
+
|
349
|
+
</tr>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<tr>
|
356
|
+
|
357
|
+
<td style="width: 70">住所2</td>
|
358
|
+
|
359
|
+
<td><input type=text size="30" name="regist_address2"></input></td>
|
360
|
+
|
361
|
+
</tr>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<tr>
|
366
|
+
|
367
|
+
<td style="width: 70">住所3</td>
|
368
|
+
|
369
|
+
<td><input type=text size="30" name="regist_address3"></input></td>
|
370
|
+
|
371
|
+
</tr>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
<tr>
|
376
|
+
|
377
|
+
<td style="width: 70">住所4</td>
|
378
|
+
|
379
|
+
<td><input type=text size="30" name="regist_address4"></input></td>
|
380
|
+
|
381
|
+
</tr>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
<tr>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
<td colspan=2 style="text-align: center">
|
394
|
+
|
395
|
+
<input type="submit" value="登録"></td>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</tr>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
</table>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
<br><br>
|
420
|
+
|
421
|
+
<a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a>
|
422
|
+
|
423
|
+
</form>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
</div>
|
432
|
+
|
433
|
+
</body>
|
434
|
+
|
435
|
+
</html>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
```
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
### registComplete.html
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
```
|
448
|
+
|
449
|
+
<!doctype html>
|
450
|
+
|
451
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
452
|
+
|
453
|
+
<head>
|
454
|
+
|
455
|
+
<meta charset="UTF-8">
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
<title>登録完了画面</title>
|
460
|
+
|
461
|
+
</head>
|
462
|
+
|
463
|
+
<body>
|
464
|
+
|
465
|
+
<div style="text-align: center">
|
466
|
+
|
467
|
+
<h2 style="text-align: center">登録完了</h2>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
<br>
|
472
|
+
|
473
|
+
企業情報の登録が完了しました。
|
474
|
+
|
475
|
+
企業情報一覧へ戻るを押してご確認ください。
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
<br><br><br><br><br><br><br>
|
484
|
+
|
485
|
+
<p><a th:href="@{/CIMS/viewCompanyInformationList}">企業情報一覧へ戻る</a></p>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
</div>
|
492
|
+
|
493
|
+
</body>
|
494
|
+
|
495
|
+
</html>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
```
|
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,7 +124,7 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
### Srevi
|
127
|
+
### Srevice
|
128
128
|
|
129
129
|
|
130
130
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,20 +138,14 @@
|
|
138
138
|
|
139
139
|
public String getRegistId(String registId) {
|
140
140
|
|
141
|
-
System.out.println("☆5:");
|
142
|
-
|
143
141
|
|
144
142
|
|
145
143
|
String result = new String();
|
146
144
|
|
147
|
-
System.out.println("☆6:");
|
148
|
-
|
149
145
|
|
150
146
|
|
151
147
|
result = sqlMapper.selectSQL08(registId);
|
152
148
|
|
153
|
-
System.out.println("☆7:");
|
154
|
-
|
155
149
|
|
156
150
|
|
157
151
|
return result;
|