表单传递中文的问题!
两个文件.不能实现中文的传递?查不出问题?请大家帮我看看.
text.jsp: 表单页面
<%@ page language="java" contentType="text/html;charset=gb2312" %>
<%
request.setCharacterEncoding("gb2312");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>jsp说你好
</title>
</head>
<body>
<form action="text1.jsp" mothod="post">
姓名 : <input type="text" name="username" />
<br />
<input type="submit">
</form>
</body>
</html>
text1.jsp:处理页面
<%@ page language="java" contentType="text/html;charset=gb2312" %>
<%
request.setCharacterEncoding("gb2312");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>jsp说你好
</title>
</head>
<body>
你好 <%=request.getParameter("username") %>
<br/>
</body>
</html