質問編集履歴
1
追記です。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,209 @@
|
|
1
|
+
JSPファイルが間違っているため条件式で分岐できないのではないか
|
2
|
+
|
3
|
+
との指摘を受けましたのでJSPファイルを添付させていただきます。
|
4
|
+
|
5
|
+
もし分かる方がいらっしゃったらご回答をよろしくお願いします。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
```lang-Java
|
12
|
+
|
13
|
+
<%@ page language="java" contentType="text/html; charset=EUC_JP"
|
14
|
+
|
15
|
+
pageEncoding="Windows-31J"%>
|
16
|
+
|
17
|
+
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
|
18
|
+
|
19
|
+
<%@ taglib prefix="fn" uri="/WEB-INF/tld/fn.tld" %>
|
20
|
+
|
21
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
22
|
+
|
23
|
+
<html>
|
24
|
+
|
25
|
+
<head>
|
26
|
+
|
27
|
+
<meta http-equiv="Content-Type" content="text/html; charset=EUC_JP">
|
28
|
+
|
29
|
+
<c:import url="./head.jsp" />
|
30
|
+
|
31
|
+
<link rel="stylesheet" type="text/css" href="../css/customerDetail.css">
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<title>編集画面</title>
|
36
|
+
|
37
|
+
</head>
|
38
|
+
|
39
|
+
<body>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<form action="./CustomerDetail" method="post">
|
44
|
+
|
45
|
+
<table>
|
46
|
+
|
47
|
+
<tr>
|
48
|
+
|
49
|
+
<th>顧客ID</th>
|
50
|
+
|
51
|
+
<td>
|
52
|
+
|
53
|
+
<c:choose>
|
54
|
+
|
55
|
+
<c:when test="${processType == 'insert'}">
|
56
|
+
|
57
|
+
<input type="text" name="id" size="12" value="${id}">
|
58
|
+
|
59
|
+
</c:when>
|
60
|
+
|
61
|
+
<c:otherwise>
|
62
|
+
|
63
|
+
<c:out value="${id}"/>
|
64
|
+
|
65
|
+
<input type="hidden" name="id" value="${id}">
|
66
|
+
|
67
|
+
</c:otherwise>
|
68
|
+
|
69
|
+
</c:choose>
|
70
|
+
|
71
|
+
</td>
|
72
|
+
|
73
|
+
</tr>
|
74
|
+
|
75
|
+
<tr>
|
76
|
+
|
77
|
+
<th>顧客漢字名</th>
|
78
|
+
|
79
|
+
<td><input type="text" name="name" size="20" value="${name}"></td>
|
80
|
+
|
81
|
+
</tr>
|
82
|
+
|
83
|
+
<tr>
|
84
|
+
|
85
|
+
<th>顧客カナ名</th>
|
86
|
+
|
87
|
+
<td><input type="text" name="kana" size="20" value="${kana}"></td>
|
88
|
+
|
89
|
+
</tr>
|
90
|
+
|
91
|
+
<tr>
|
92
|
+
|
93
|
+
<th>性別</th>
|
94
|
+
|
95
|
+
<td><select name="gender"><OPTION value="${0}" >男性</OPTION>
|
96
|
+
|
97
|
+
<OPTION value="${1}">女性</OPTION></select></td>
|
98
|
+
|
99
|
+
</tr>
|
100
|
+
|
101
|
+
<tr>
|
102
|
+
|
103
|
+
<th>身長</th>
|
104
|
+
|
105
|
+
<td><input type="text" name="height" size="12" value="${height}">cm</td>
|
106
|
+
|
107
|
+
</tr>
|
108
|
+
|
109
|
+
<tr>
|
110
|
+
|
111
|
+
<th>体重</th>
|
112
|
+
|
113
|
+
<td><input type="text" name="weight" size="12" value="${weight}">kg</td>
|
114
|
+
|
115
|
+
</tr>
|
116
|
+
|
117
|
+
<tr>
|
118
|
+
|
119
|
+
<th>生年月日</th>
|
120
|
+
|
121
|
+
<td><input type="text" name="birthday" size="12" value="${birthday}"></td>
|
122
|
+
|
123
|
+
</tr>
|
124
|
+
|
125
|
+
<tr>
|
126
|
+
|
127
|
+
<th>郵便番号</th>
|
128
|
+
|
129
|
+
<td><input type="text" name="zipCode" size="14" value="${zipCode}">(ハイフン無しで入力してください)</td>
|
130
|
+
|
131
|
+
</tr>
|
132
|
+
|
133
|
+
<tr>
|
134
|
+
|
135
|
+
<th>住所</th>
|
136
|
+
|
137
|
+
<td><input type="text" name="address" size="40" value="${address}"></td>
|
138
|
+
|
139
|
+
</tr>
|
140
|
+
|
141
|
+
<tr>
|
142
|
+
|
143
|
+
<th>電話番号</th>
|
144
|
+
|
145
|
+
<td><input type="text" name="phone" size="14" value="${phone}">(ハイフンありで入力してください)</td>
|
146
|
+
|
147
|
+
</tr>
|
148
|
+
|
149
|
+
<tr>
|
150
|
+
|
151
|
+
<th>削除</th>
|
152
|
+
|
153
|
+
<td><input type="checkbox" name="deleteFlag" size="12" value="${1}"></td>
|
154
|
+
|
155
|
+
</tr>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</table>
|
160
|
+
|
161
|
+
<br>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<c:choose>
|
166
|
+
|
167
|
+
<c:when test="${processType == 'insert'}">
|
168
|
+
|
169
|
+
<input type="submit" value="OK" name="insert" />
|
170
|
+
|
171
|
+
<input type="hidden" name="processType" value="insert">
|
172
|
+
|
173
|
+
</c:when>
|
174
|
+
|
175
|
+
<c:otherwise>
|
176
|
+
|
177
|
+
<input type="submit" value="OK" name="update" />
|
178
|
+
|
179
|
+
<input type="hidden" name="processType" value="update">
|
180
|
+
|
181
|
+
</c:otherwise>
|
182
|
+
|
183
|
+
</c:choose>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<input type="submit" value="一覧へ" name="backList" />
|
188
|
+
|
189
|
+
</form>
|
190
|
+
|
191
|
+
</body>
|
192
|
+
|
193
|
+
</html>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
1
207
|
###前提・実現したいこと
|
2
208
|
|
3
209
|
こんばんは。
|