测试例1:  checkbox.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>
<style type="text/css">
<!--
.style2 {font-size: 12}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="checkbox_ok.jsp">
  <p>&nbsp;</p>
  <table width="610" border="0">
    <tr>
      <td width="164">      
        <div align="left" class="style2">
        <input type="checkbox" name="selectx" value="1">
      用户编码</div></td>
      <td width="70"><span class="style2">
        <select name="filter1">
          <option>=</option>
          <option>like</option>
        </select>
      </span></td>
      <td width="339"><input name="use_id" type="text" size="50"></td>
    </tr>
    <tr>
      <td>        
        <div align="left" class="style2">
          <input type="checkbox" name="selectx" value="2">
      用户名称</div></td>
      <td><span class="style2">
        <select name="filter2">
          <option>=</option>
          <option>like</option>
        </select>
      </span></td>
      <td><input name="use_name" type="text" size="50"></td>
    </tr>
    <tr>
      <td>        
        <div align="left" class="style2">
          <input type="checkbox" name="selectx" value="3">
      联系电话</div></td>
      <td><span class="style2">
        <select name="filter3">
          <option>=</option>
          <option>like</option>
        </select>
      </span></td>
      <td><input name="use_pho" type="text" size="50"></td>
    </tr>
    <tr>
      <td>        
        <div align="left" class="style2">
          <input type="checkbox" name="selectx" value="4">
      挂长电话</div></td>
      <td><span class="style2">
        <select name="filter4">
          <option>=</option>
          <option>like</option>
        </select>
      </span></td>
      <td><input name="use_count" type="text" size="50"></td>
    </tr>
    <tr>
      <td height="23">        
        <div align="left" class="style2">
          <input type="checkbox" name="selectx" value="5">
      客户经理</div></td>
      <td><span class="style2">
        <select name="filter5">
          <option>=</option>
          <option>like</option>
        </select>
      </span></td>
      <td><input name="work_name" type="text" size="50"></td>
    </tr>