質問編集履歴
9
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,12 +48,6 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
追記:
|
52
|
-
|
53
|
-
web.xmlのjsp-configタグを丸ごとコメントアウトしたら2つ表示されることがなくなった。
|
54
|
-
|
55
|
-
|
56
|
-
|
57
51
|
### index.jsp
|
58
52
|
|
59
53
|
|
@@ -316,12 +310,6 @@
|
|
316
310
|
|
317
311
|
|
318
312
|
|
319
|
-
追記:
|
320
|
-
|
321
|
-
web.xmlのjsp-configタグを丸ごとコメントアウトしたら2つ表示されることがなくなった。
|
322
|
-
|
323
|
-
|
324
|
-
|
325
313
|
|
326
314
|
|
327
315
|
### 補足情報(FW/ツールのバージョンなど)
|
8
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,6 +48,10 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
+
追記:
|
52
|
+
|
53
|
+
web.xmlのjsp-configタグを丸ごとコメントアウトしたら2つ表示されることがなくなった。
|
54
|
+
|
51
55
|
|
52
56
|
|
53
57
|
### index.jsp
|
@@ -312,6 +316,14 @@
|
|
312
316
|
|
313
317
|
|
314
318
|
|
319
|
+
追記:
|
320
|
+
|
321
|
+
web.xmlのjsp-configタグを丸ごとコメントアウトしたら2つ表示されることがなくなった。
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
315
327
|
### 補足情報(FW/ツールのバージョンなど)
|
316
328
|
|
317
329
|
|
7
ソースの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,7 +124,11 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
</web-app>
|
127
|
+
</web-app>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
```
|
128
132
|
|
129
133
|
|
130
134
|
|
@@ -148,13 +152,17 @@
|
|
148
152
|
|
149
153
|
</glassfish-web-app>
|
150
154
|
|
155
|
+
|
156
|
+
|
151
|
-
```
|
157
|
+
```
|
158
|
+
|
159
|
+
|
152
160
|
|
153
161
|
### pom.xml
|
154
162
|
|
155
|
-
|
156
|
-
|
157
|
-
```
|
163
|
+
```
|
164
|
+
|
165
|
+
|
158
166
|
|
159
167
|
<?xml version="1.0" encoding="UTF-8"?>
|
160
168
|
|
@@ -288,6 +296,8 @@
|
|
288
296
|
|
289
297
|
</project>
|
290
298
|
|
299
|
+
|
300
|
+
|
291
301
|
```
|
292
302
|
|
293
303
|
|
6
web.xmlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,54 @@
|
|
80
80
|
|
81
81
|
```
|
82
82
|
|
83
|
+
### web.xml
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
94
|
+
|
95
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
96
|
+
|
97
|
+
xsi:schemaLocation="
|
98
|
+
|
99
|
+
http://java.sun.com/xml/ns/javaee
|
100
|
+
|
101
|
+
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
|
102
|
+
|
103
|
+
"
|
104
|
+
|
105
|
+
version="3.0"
|
106
|
+
|
107
|
+
>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<jsp-config>
|
112
|
+
|
113
|
+
<jsp-property-group>
|
114
|
+
|
115
|
+
<url-pattern>*.jsp</url-pattern>
|
116
|
+
|
117
|
+
<page-encoding>UTF-8</page-encoding>
|
118
|
+
|
119
|
+
<include-prelude>/index.jsp</include-prelude>
|
120
|
+
|
121
|
+
</jsp-property-group>
|
122
|
+
|
123
|
+
</jsp-config>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
</web-app>```
|
128
|
+
|
129
|
+
|
130
|
+
|
83
131
|
### glassfish-web.xml
|
84
132
|
|
85
133
|
|
5
補足の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -266,6 +266,10 @@
|
|
266
266
|
|
267
267
|
使用しているブラウザ:グーグルクローム(IEでも同じ現象になることは確認済、またEclispe上からJSPファイルを実行しても同じ現象になる)
|
268
268
|
|
269
|
+
デプロイ時に作成されるdomain1\applications配下のファイルを見てもJSPが変更されていることはありませんでした。
|
270
|
+
|
271
|
+
|
272
|
+
|
269
273
|
|
270
274
|
|
271
275
|
作成方法は以下を参考にした。
|
4
補足の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -264,6 +264,8 @@
|
|
264
264
|
|
265
265
|
Java 8
|
266
266
|
|
267
|
+
使用しているブラウザ:グーグルクローム(IEでも同じ現象になることは確認済、またEclispe上からJSPファイルを実行しても同じ現象になる)
|
268
|
+
|
267
269
|
|
268
270
|
|
269
271
|
作成方法は以下を参考にした。
|
3
補足の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,37 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
###
|
53
|
+
### index.jsp
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
60
|
+
|
61
|
+
<%@ page session="false"%>
|
62
|
+
|
63
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
64
|
+
|
65
|
+
pageEncoding="UTF-8"%>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<html>
|
70
|
+
|
71
|
+
<body>
|
72
|
+
|
73
|
+
<h2>Hello World!</h2>
|
74
|
+
|
75
|
+
</body>
|
76
|
+
|
77
|
+
</html>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
### glassfish-web.xml
|
54
84
|
|
55
85
|
|
56
86
|
|
@@ -60,79 +90,19 @@
|
|
60
90
|
|
61
91
|
|
62
92
|
|
63
|
-
<web-app
|
93
|
+
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
64
|
-
|
65
|
-
|
94
|
+
|
66
|
-
|
67
|
-
xsi:schemaLocation="
|
68
|
-
|
69
|
-
http://java.sun.com/xml/ns/javaee
|
70
|
-
|
71
|
-
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
|
72
|
-
|
73
|
-
"
|
74
|
-
|
75
|
-
version="3.0"
|
76
|
-
|
77
|
-
>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<jsp-config>
|
82
|
-
|
83
|
-
|
95
|
+
<glassfish-web-app>
|
84
|
-
|
85
|
-
|
96
|
+
|
86
|
-
|
87
|
-
<page-encoding>UTF-8</page-encoding>
|
88
|
-
|
89
|
-
<!-- フォルダ構成と合わせる -->
|
90
|
-
|
91
|
-
|
97
|
+
<context-root>/app</context-root>
|
92
|
-
|
98
|
+
|
93
|
-
<
|
99
|
+
<parameter-encoding default-charset="UTF-8" />
|
94
|
-
|
95
|
-
|
100
|
+
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
</web-app>
|
101
|
+
</glassfish-web-app>
|
100
|
-
|
102
|
+
|
101
|
-
```
|
103
|
+
```
|
102
|
-
|
104
|
+
|
103
|
-
###
|
105
|
+
### pom.xml
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
```
|
108
|
-
|
109
|
-
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
110
|
-
|
111
|
-
<%@ page session="false"%>
|
112
|
-
|
113
|
-
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
114
|
-
|
115
|
-
pageEncoding="UTF-8"%>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<html>
|
120
|
-
|
121
|
-
<body>
|
122
|
-
|
123
|
-
<h2>Hello World!</h2>
|
124
|
-
|
125
|
-
</body>
|
126
|
-
|
127
|
-
</html>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
```
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
### glassfish-web.xml
|
136
106
|
|
137
107
|
|
138
108
|
|
@@ -140,28 +110,6 @@
|
|
140
110
|
|
141
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
142
112
|
|
143
|
-
|
144
|
-
|
145
|
-
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
|
146
|
-
|
147
|
-
<glassfish-web-app>
|
148
|
-
|
149
|
-
<context-root>/app</context-root>
|
150
|
-
|
151
|
-
<parameter-encoding default-charset="UTF-8" />
|
152
|
-
|
153
|
-
</glassfish-web-app>
|
154
|
-
|
155
|
-
```
|
156
|
-
|
157
|
-
### pom.xml
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
```
|
162
|
-
|
163
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
164
|
-
|
165
113
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
166
114
|
|
167
115
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
@@ -315,3 +263,17 @@
|
|
315
263
|
payara-4.1.2.174
|
316
264
|
|
317
265
|
Java 8
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
作成方法は以下を参考にした。
|
270
|
+
|
271
|
+
https://qiita.com/527aboo/items/f61912f28d68f4e084b0
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
参考にしたサイトに加え、自分で手を加えた部分は、
|
276
|
+
|
277
|
+
web.xmlの<include-prelude>index.jsp</include-prelude>の箇所において、「/WEB-INF」を削除した、
|
278
|
+
|
279
|
+
pom.xmlのjunitのversionの箇所をコメントアウトした。
|
2
web.xmlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,56 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
+
### web.xml
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```
|
58
|
+
|
59
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
64
|
+
|
65
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
66
|
+
|
67
|
+
xsi:schemaLocation="
|
68
|
+
|
69
|
+
http://java.sun.com/xml/ns/javaee
|
70
|
+
|
71
|
+
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
|
72
|
+
|
73
|
+
"
|
74
|
+
|
75
|
+
version="3.0"
|
76
|
+
|
77
|
+
>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<jsp-config>
|
82
|
+
|
83
|
+
<jsp-property-group>
|
84
|
+
|
85
|
+
<url-pattern>*.jsp</url-pattern>
|
86
|
+
|
87
|
+
<page-encoding>UTF-8</page-encoding>
|
88
|
+
|
89
|
+
<!-- フォルダ構成と合わせる -->
|
90
|
+
|
91
|
+
<include-prelude>/index.jsp</include-prelude>
|
92
|
+
|
93
|
+
</jsp-property-group>
|
94
|
+
|
95
|
+
</jsp-config>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
</web-app>
|
100
|
+
|
101
|
+
```
|
102
|
+
|
53
103
|
### index.jsp
|
54
104
|
|
55
105
|
|
@@ -80,6 +130,8 @@
|
|
80
130
|
|
81
131
|
```
|
82
132
|
|
133
|
+
|
134
|
+
|
83
135
|
### glassfish-web.xml
|
84
136
|
|
85
137
|
|
1
初心者マーク追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|