<body>
<%

String[] abc=request.getParameterValues("sys");
for(int i=0;i<abc.length;i++)
out.print(abc[i]);
%>
</body>

解决方案 »

  1.   

    <form name="form1" method="post" action="deletequantity.jsp">
      

  2.   

    刚才发错了。少了链接一项。
    <%@ 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="deletequantity.jsp">
          <input type="checkbox" name="sys" value="dos" checked>
          dos 
          <input type="checkbox" name="sys" value="windows">
    windows <a href="deletequantity.jsp">delete</a>   </a>
        </form></td>
      </tr>
      
    </table>
    </body>
    </html>
      

  3.   

    String[] abc=request.getParameterValues("sys");
    在form内需要一个提交按钮
    <input type="submit" value="提交"/>