質問編集履歴

1

html

2016/09/15 11:03

投稿

Test1115Test
Test1115Test

スコア52

test CHANGED
File without changes
test CHANGED
@@ -1,14 +1,44 @@
1
1
  ```html
2
+
3
+ <!-- Test.jsp?body=あいうえお -->
4
+
5
+ <%@ page language="java" contentType="text/html; charset=UTF-8"
6
+
7
+ pageEncoding="UTF-8"%>
8
+
9
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
10
+
11
+ <html>
12
+
13
+ <head>
2
14
 
3
15
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
16
 
17
+ <title>Insert title here</title>
18
+
19
+ </head>
20
+
21
+ <body>
22
+
5
23
  <%
6
24
 
7
- response.setContentType("text/html; charset=UTF-8");
25
+ response.setContentType("text/html; charset=UTF-8");
8
26
 
9
- String body = request.getParameter("body");
27
+ String body = request.getParameter("body");
28
+
29
+
30
+
31
+ out.print(body);
32
+
33
+ %>
34
+
35
+ </body>
36
+
37
+ </html>
10
38
 
11
39
  ```
40
+
41
+ 結果、‚ ‚¢‚¤‚¦‚¨
12
42
 
13
43
  jspに日本語のパラメータを送ると文字化けしてしまいます
14
44