I want to print URL into next jsp page , even if URL has hindi text content.
index.html file :
<html>
<head>
<title>T-SUMM</title>
</head>
<body>
<form method="Post" action="./result.jsp">
<center>
Enter a URL : <input name='habits' id='t1'>
<br><br>
<input type="submit" name="submit">
</center>
</form>
</body>
</html>
JSP page result.jsp
<%@ page language="java" contentType="te xt/html; charset=UTF-8" pageEncoding="U TF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>T-SUMM</title>
</head>
<body>
<%
String[] values=request. getParameterVal ues("habits");
for(int i=0;i<(values.l ength);i++)
{
out.println("<b r><br> "+v alues[i]);out.println() ;
}
%>
</body>
</html>
above code print URL as : https://hi.wikipedia.or g/wiki/%E0%A4%B5%E0%A4 %BE%E0%A4%B0%E0 %A4%BE%E0%A4%A3 %E0%A4%B8%E0%A5 %80
but i want to print URL with hindi text content into next JSP page, which is attached as image file.
index.html file :
<html>
<head>
<title>T-SUMM</title>
</head>
<body>
<form method="Post" action="./result.jsp">
<center>
Enter a URL : <input name='habits' id='t1'>
<br><br>
<input type="submit" name="submit">
</center>
</form>
</body>
</html>
JSP page result.jsp
<%@ page language="java" contentType="te xt/html; charset=UTF-8" pageEncoding="U TF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>T-SUMM</title>
</head>
<body>
<%
String[] values=request. getParameterVal ues("habits");
for(int i=0;i<(values.l ength);i++)
{
out.println("<b r><br> "+v alues[i]);out.println() ;
}
%>
</body>
</html>
above code print URL as : https://hi.wikipedia.or g/wiki/%E0%A4%B5%E0%A4 %BE%E0%A4%B0%E0 %A4%BE%E0%A4%A3 %E0%A4%B8%E0%A5 %80
but i want to print URL with hindi text content into next JSP page, which is attached as image file.
Comment