请问:checkbox的页面提交的问题,用的request.getParameterValues(),但是取不到值。
zhbz 2004-10-16 05:23:09 //pic.jsp
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!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=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="134">
<form name="form1" method="post" action="">
<input type="checkbox" name="sys" value="dos" checked>
dos
<input type="checkbox" name="sys" value="windows">
windows delete </a>
</form></td>
</tr>
</table>
</body>
</html>
//deletequantity.jsp
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page language="java" import="java.util.*,java.io.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
String abc=request.getParameter("sys");
for(int i=0;i<abc.length;i++)
out.print(abc[i]);
%>
</body>
</html>
500 nullpoint 错误。