请帮忙看看 这个名字为什么是空的呢?
text.jsp
<%@ 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>Insert title here</title>
</head>
<body>
fcdferknjk<br>
<font color = "red">
<form method="post" action="text1.jsp">
姓名:<input type="text" name=“name" ><br>
爱好:<input type="checkbox" name="favor" value="1"/>听音乐
<input type="checkbox" name="favor" value="2"/>看电影
<input type="checkbox" name="favor" value="3"/>玩游戏
<input type="checkbox" name="favor" value="4"/>上网聊天
<br>
<input type="submit" value="提交" />
</form>
</font>
</body>
</html>
text1.jsp
<%@ 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>Insert title here</title>
</head>
<body>
好好好好
</body>
<%String name = request.getParameter("name");
String[] f = request.getParameterValues("favor");
out.println(name+"<br>");
out.println(f [0]+"<br>");
%>
</html>
------解决方案--------------------
姓名:<input type="text" name=
“name" ><br>
------解决方案--------------------楼主,这个地方应该是半角的
姓名:<input type="text" name=
“name" ><br>