I want to send č, á, ě using tag <form> in
JSP but I got this: Å¡, á, Ä . Please can you help me where is the problem in this index.jsp file deployed to
Tomcat?:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-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>Page</title>
</head><body>
<form>
<input type="text" name="first"/>
<input type="submit" value="Send" "/>
</form>
<%
String s1 = String.valueOf(request.getParameter("first"));
System.out.println(s1);
%>
<%=s1%>
<%= System.getProperty("file.encoding") %>
</body></html>
Does this JSP file works at your application server?
Dave