質問編集履歴
3
add\.jsp追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -500,23 +500,25 @@
|
|
500
500
|
|
501
501
|
<td class="add_field">
|
502
502
|
|
503
|
+
|
504
|
+
|
503
505
|
<%
|
504
506
|
|
505
507
|
Calendar calendar = Calendar.getInstance();
|
506
508
|
|
507
509
|
%>
|
508
510
|
|
509
|
-
<input type="
|
511
|
+
<input type="hidden" name="year" value="" id="toshi"><label for="toshi"><%= calendar.get(Calendar.YEAR) %>/</label>
|
510
|
-
|
512
|
+
|
511
|
-
<input type="
|
513
|
+
<input type="hidden" name="month" value="" id="tsuki"><label for="tsuki"><%= calendar.get(Calendar.MONTH) + 1 %>/</label>
|
512
|
-
|
514
|
+
|
513
|
-
<input type="
|
515
|
+
<input type="hidden" name="day" value="" id="nichi"><label for="nichi"><%= calendar.get(Calendar.DAY_OF_MONTH) %>/ </label>
|
514
|
-
|
516
|
+
|
515
|
-
<input type="
|
517
|
+
<input type="hidden" name="hour" value="" id="jikan"><label for="jikan"><%= calendar.get(Calendar.HOUR_OF_DAY) %>:</label>
|
516
|
-
|
518
|
+
|
517
|
-
<input type="
|
519
|
+
<input type="hidden" name="minute" value="" id="hun"><label for="hun"><%= calendar.get(Calendar.MINUTE) %>:</label>
|
518
|
-
|
520
|
+
|
519
|
-
<input type="
|
521
|
+
<input type="hidden" name="second" value="" id="byou"><label for="byou"><%= calendar.get(Calendar.SECOND) %></label>
|
520
522
|
|
521
523
|
</td>
|
522
524
|
|
2
doError追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,6 +148,44 @@
|
|
148
148
|
|
149
149
|
|
150
150
|
|
151
|
+
/**
|
152
|
+
|
153
|
+
* エラーを表示します。
|
154
|
+
|
155
|
+
*
|
156
|
+
|
157
|
+
* @param req
|
158
|
+
|
159
|
+
* @param resp
|
160
|
+
|
161
|
+
* @param message
|
162
|
+
|
163
|
+
* @return
|
164
|
+
|
165
|
+
* @throws ServletException
|
166
|
+
|
167
|
+
* @throws IOException
|
168
|
+
|
169
|
+
*/
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
private String doError(HttpServletRequest req, HttpServletResponse resp,
|
174
|
+
|
175
|
+
String message) throws ServletException, IOException {
|
176
|
+
|
177
|
+
req.setAttribute("message", message);
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
// エラーを表示する
|
182
|
+
|
183
|
+
return JSP_BASE + "error.jsp";
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
|
151
189
|
一部省略
|
152
190
|
|
153
191
|
|
1
add\.jspのspanタグをinputタグに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -468,7 +468,17 @@
|
|
468
468
|
|
469
469
|
%>
|
470
470
|
|
471
|
-
<
|
471
|
+
<input type="text" name="year" value="<%= calendar.get(Calendar.YEAR) %>" disabled="disabled">/
|
472
|
+
|
473
|
+
<input type="text" name="month" value="<%= calendar.get(Calendar.MONTH) + 1 %>" disabled="disabled">/
|
474
|
+
|
475
|
+
<input type="text" name="day" value="<%= calendar.get(Calendar.DAY_OF_MONTH) %>" disabled="disabled">/
|
476
|
+
|
477
|
+
<input type="text" name="hour" value="<%= calendar.get(Calendar.HOUR_OF_DAY) %>" disabled="disabled">:
|
478
|
+
|
479
|
+
<input type="text" name="minute" value="<%= calendar.get(Calendar.MINUTE) %>" disabled="disabled">:
|
480
|
+
|
481
|
+
<input type="text" name="second" value="<%= calendar.get(Calendar.SECOND) %>" disabled="disabled">
|
472
482
|
|
473
483
|
</td>
|
474
484
|
|