質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -109,3 +109,79 @@
|
|
109
109
|
Tomcat 7
|
110
110
|
|
111
111
|
DB = H2
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
###追記
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
JSPでの設定ボタンの記述を
|
120
|
+
|
121
|
+
`<button type="submit" value=" 設定 " name=setting>設定</button>`
|
122
|
+
|
123
|
+
と変更し
|
124
|
+
|
125
|
+
```lang-言語名
|
126
|
+
|
127
|
+
String setting = request.getParameter( "setting" );
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
if ( "設定".equals( setting ) ) {
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
int number = 5;
|
138
|
+
|
139
|
+
String num = request.getParameter( "num" );
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
if ( num != null ) {
|
144
|
+
|
145
|
+
number = Integer.parseInt( num );
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
chatList = CDC.getContribution( number );
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
int aList = CDC.dataList.size();
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
application.setAttribute( "chatList", chatList );//アプリケーションスコープにインスタンスを保存
|
166
|
+
|
167
|
+
application.setAttribute( "初期値", primary );//アプリケーションスコープにインスタンスを保存
|
168
|
+
|
169
|
+
application.setAttribute( "aList", aList );
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
RequestDispatcher dispatch = request.getRequestDispatcher( "/ChatOutput.jsp" );
|
176
|
+
|
177
|
+
dispatch.forward( request, response );
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
と変更したのですがJSPページも表示されなくなってしまいました。
|