質問編集履歴
2
回答ありがとうございます。JSPのコードを記述いたしましたので、ご確認をお願い致します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,139 @@
|
|
51
51
|
}
|
52
52
|
|
53
53
|
```
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```HTML
|
58
|
+
|
59
|
+
<jsp:root
|
60
|
+
|
61
|
+
xmlns:jsp="http://java.sun.com/JSP/Page"
|
62
|
+
|
63
|
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
64
|
+
|
65
|
+
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
|
66
|
+
|
67
|
+
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
|
68
|
+
|
69
|
+
xmlns:form="http://www.springframework.org/tags/form"
|
70
|
+
|
71
|
+
xmlns:spring="http://www.springframework.org/tags"
|
72
|
+
|
73
|
+
version="2.1">
|
74
|
+
|
75
|
+
<jsp:directive.page
|
76
|
+
|
77
|
+
language="java"
|
78
|
+
|
79
|
+
contentType="text/html; charset=utf-8"
|
80
|
+
|
81
|
+
/>
|
82
|
+
|
83
|
+
<jsp:body>
|
84
|
+
|
85
|
+
<form:form id="form" method="post" name="PrintForm " modelAttribute="PrintForm " action="${outputUrl}" >
|
86
|
+
|
87
|
+
<table style="width:100%;">
|
88
|
+
|
89
|
+
<tbody>
|
90
|
+
|
91
|
+
<tr>
|
92
|
+
|
93
|
+
<th>検索日付</th>
|
94
|
+
|
95
|
+
<td class="errorMessageArea">
|
96
|
+
|
97
|
+
<form:input id="fromDt" path="fromDt" size="12" class="date clear_value" maxlength="8" />
|
98
|
+
|
99
|
+
~
|
100
|
+
|
101
|
+
<form:input id="toDt" path="toDt" size="12" class="date clear_value" maxlength="8" />
|
102
|
+
|
103
|
+
</td>
|
104
|
+
|
105
|
+
</tr>
|
106
|
+
|
107
|
+
</tbody>
|
108
|
+
|
109
|
+
</table>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<div class="submitArea">
|
114
|
+
|
115
|
+
<form:button id="searchButton" value="検索" url="${searchUrl}" />
|
116
|
+
|
117
|
+
<jsp:element name="input">
|
118
|
+
|
119
|
+
<jsp:attribute name="type">button</jsp:attribute>
|
120
|
+
|
121
|
+
<jsp:attribute name="class">clear_button</jsp:attribute>
|
122
|
+
|
123
|
+
<jsp:attribute name="value">クリア</jsp:attribute>
|
124
|
+
|
125
|
+
</jsp:element>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<c:if test="${PrintForm.resultItemList != null}">
|
132
|
+
|
133
|
+
<h2>検索結果</h2>
|
134
|
+
|
135
|
+
<div class="searchResult">
|
136
|
+
|
137
|
+
<table id="centerAndOutputResultHeader">
|
138
|
+
|
139
|
+
<thead>
|
140
|
+
|
141
|
+
<tr class="col1">
|
142
|
+
|
143
|
+
<th class="createDate" rowspan="2">作成日付</th>
|
144
|
+
|
145
|
+
…略…
|
146
|
+
|
147
|
+
</tr>
|
148
|
+
|
149
|
+
</thead>
|
150
|
+
|
151
|
+
<tbody>
|
152
|
+
|
153
|
+
<c:forEach items="${PrintForm.resultItemList}" var="item" varStatus="status">
|
154
|
+
|
155
|
+
<jsp:body>
|
156
|
+
|
157
|
+
<form:hidden path="resultItemList[${status.index}].createDt" />
|
158
|
+
|
159
|
+
…略…
|
160
|
+
|
161
|
+
</jsp:body>
|
162
|
+
|
163
|
+
</c:forEach>
|
164
|
+
|
165
|
+
</tbody>
|
166
|
+
|
167
|
+
</table>
|
168
|
+
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div class="submitArea2">
|
172
|
+
|
173
|
+
<form:button id="outputButton" value="出力" url="${outputUrl}" />
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
</c:if>
|
178
|
+
|
179
|
+
</form:form>
|
180
|
+
|
181
|
+
</jsp:body>
|
182
|
+
|
183
|
+
</jsp:root>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
```
|
1
ご指摘ただいた通り、コードをコードブロックで囲みました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
どのように記述すればよいか判らない為、ご教示いただけないでしょうか?
|
12
12
|
|
13
13
|
|
14
|
+
|
15
|
+
```Java
|
14
16
|
|
15
17
|
public class PrintForm implements Serializable {
|
16
18
|
|
@@ -32,7 +34,9 @@
|
|
32
34
|
|
33
35
|
}
|
34
36
|
|
37
|
+
```
|
35
38
|
|
39
|
+
```Java
|
36
40
|
|
37
41
|
public class PrintBo implements Serializable {
|
38
42
|
|
@@ -45,3 +49,5 @@
|
|
45
49
|
…(略)…
|
46
50
|
|
47
51
|
}
|
52
|
+
|
53
|
+
```
|