[求助]页面传数据,但是显示是“??”,请问怎么解决啊
下面是页面代码,地址栏输入3.jsp?name=李四,可页面打印出的是????
3.jsp
<html>
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" errorPage="" %>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>无标题文档</title>
</head>
<body>
<%
request.setCharacterEncoding("GBK");
String name = request.getParameter("name");
out.print(name);
%>
</body>
</html>