<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>处理页</title>
</head>
<body>
<%
request.setAttribute("user","zhangfei");//存储自定义数据
request.setAttribute("id","2");//存储自定义数据
request.setAttribute("pwd","888888888");//存储自定义数据
%>
id参数的值为:<%=request.getParameter("id")%><br>
user参数的值为:<%=request.getParameter("user")%><br>
pwd参数的值为:<%=request.getParameter("pwd")%>
</body>
</html>
知道了,多谢哈
应该是request.getAttribute()方法而不是getParameter()方法