質問編集履歴
3
PS
test
CHANGED
File without changes
|
test
CHANGED
@@ -63,3 +63,13 @@
|
|
63
63
|
<% strBefor_description = strBefor_description.replaceAll("\\n", "<br>"); %>
|
64
64
|
|
65
65
|
のように \ を一つ追加しても、変換されません。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
-------------------------------------------------------------------------
|
70
|
+
|
71
|
+
PS.
|
72
|
+
|
73
|
+
下記のように\n以外の文字は、正常に変換されます。
|
74
|
+
|
75
|
+
<% strBefor_description = strBefor_description.replaceAll("あ", "<br>"); %>
|
2
PS
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,3 +53,13 @@
|
|
53
53
|
</BODY>
|
54
54
|
|
55
55
|
</HTML>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
PS.
|
62
|
+
|
63
|
+
<% strBefor_description = strBefor_description.replaceAll("\\n", "<br>"); %>
|
64
|
+
|
65
|
+
のように \ を一つ追加しても、変換されません。
|
1
誤記修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
JSPで、replaceAll の行で
|
1
|
+
JSPで、replaceAll の行で文字列の入れ替えができない。
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
HTMLで表示すると、そのまま、「おはよう\nございます。」と改行コードも表示されてしまいます。
|
12
12
|
|
13
|
-
そこで、\n を <br> に変換したいのですが、
|
13
|
+
そこで、\n を <br> に変換したいのですが、変換できていません。
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<% String strBefor_description = request.getParameter("befor_description"); %>
|
46
46
|
|
47
|
-
<% strBefor_description = strBefor_description.replaceAll("\n", "<br>"); %> ← ★ここで、
|
47
|
+
<% strBefor_description = strBefor_description.replaceAll("\n", "<br>"); %> ← ★ここで、変換ができていない。
|
48
48
|
|
49
49
|
<td><%= strBefor_description %></td>
|
50
50
|
|
@@ -53,23 +53,3 @@
|
|
53
53
|
</BODY>
|
54
54
|
|
55
55
|
</HTML>
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
★上記の「★ここで」で、下記エラーがでます。
|
64
|
-
|
65
|
-
HTTPステータス 500 -
|
66
|
-
|
67
|
-
type 例外レポート
|
68
|
-
|
69
|
-
メッセージ
|
70
|
-
|
71
|
-
説明 The server encountered an internal error () that prevented it from fulfilling this request.
|
72
|
-
|
73
|
-
例外
|
74
|
-
|
75
|
-
org.apache.jasper.JasperException: Exception in JSP: /api/app_input_sell_product_card_info.jsp:37
|