<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<html>
<form action="index.jsp">
<body>
First INPUT:
<input name="firstinput" type="text" name="fname">
<br>
<input type="submit" value="Submit">
<%
String first = request.getParameter("firstinput");
out.println(first);
%>
</body>
</form>
</html>
Hello
これは、入力すると印刷Hello
され、入力する"Hello"
と印刷される私のコード"Hello"
です。後者の場合、印刷する必要がありますHello
。どうすればいいですか?"
ユーザーが引用テキストを入力した場合、どうすればを削除できますか?