<%@ 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>
This is my code when enter Hello
then it print Hello
and when enter "Hello"
, then it prints "Hello"
. In the later case, I want it should print Hello
. How I will do this? Please tell me How I can remove "
, if a user enters a quoted text?