質問編集履歴

1

移し間違えた部分があった

2024/11/15 04:40

投稿

YUUdesu
YUUdesu

スコア5

test CHANGED
File without changes
test CHANGED
@@ -147,54 +147,7 @@
147
147
  </body>
148
148
  </html>
149
149
  ```
150
- ```end.jsp
151
- <%@ page language="java" contentType="text/html; charset=UTF-8"
152
- pageEncoding="UTF-8"%>
153
150
 
154
- <jsp:useBean id="result" scope="request" class="bean.CountBean"/>
155
-
156
- <!DOCTYPE html>
157
- <html>
158
- <head>
159
- <meta charset="UTF-8">
160
- <title>連続チャレンジ</title>
161
- </head>
162
- <body>
163
- 終わり!
164
-
165
- <jsp:getProperty name="result" property="count" />回成功した
166
-
167
- </body>
168
- </html>
169
- ```
170
- ```Count.Bean.java
171
- package bean;
172
-
173
- import java.io.Serializable;
174
-
175
- public class CountBean implements Serializable{
176
-
177
- private int count;
178
-
179
- public CountBean() {
180
- count = 0;
181
- }
182
-
183
- public void setCount(int count) {
184
- this.count = count;
185
- }
186
-
187
- public int getCount() {
188
- count++;
189
- return count;
190
- }
191
-
192
- public int ResultCount() {
193
- return count;
194
- }
195
-
196
- }
197
- ```
198
151
  ```Random.java
199
152
  package controller;
200
153