S
sercall
Unregistered / Unconfirmed
GUEST, unregistred user!
我想把输入表单的值存在session("spart").
现出错!
请教,谢谢!
-------------------------------------------------------------------
<html>
<head>
<title>temp1</title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="sp1.jsp">
<p>
<input type="text" name="tpart">
</p>
</form>
<%
//String spart="0001";
//用这句可以通过
String spart=request.getParameter("tpart").trim();
//用这句出错! IE出错:Error: 500 Unknown exception:
session.putValue("spart",spart);
%>
</body>
</html>
------------------------------------------------------------------
现出错!
请教,谢谢!
-------------------------------------------------------------------
<html>
<head>
<title>temp1</title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="sp1.jsp">
<p>
<input type="text" name="tpart">
</p>
</form>
<%
//String spart="0001";
//用这句可以通过
String spart=request.getParameter("tpart").trim();
//用这句出错! IE出错:Error: 500 Unknown exception:
session.putValue("spart",spart);
%>
</body>
</html>
------------------------------------------------------------------