我要查找的是数据库中的数据,怎么用这个查找带回?DWZ文档中那个好像是写死的,怎么才可以使得与数据库同步 ?急求解,3Q大神

解决方案 »

  1.   

    action返回 查找页面<thead>
    <tr>
    <th width="80"><input type="checkbox" class="checkboxCtrl" group="classId" /></th>

    <th width="80">人数</th>
    <th width="80">查找带回</th>
    </tr>
    </thead>
    <tbody>

    <c:forEach items="${list}" var="tmp">
    <tr target="sid" rel="${tmp.id}">
    <td><input type="checkbox" name="classId" value="{id:'${tmp.id}', name:'${tmp.className}'}"/></td>

    <td>${tmp.totalPeo}</td>
    <td>
    <a class="btnSelect" href="javascript:$.bringBack({id:'${tmp.id}', name:'${tmp.className}'})" title="查找带回">选择</a>
    </td>
    </tr>
    </c:forEach>
    </tbody>页面
     <th type="lookup" name="togetherClass.name" suggestFields="name" lookupGroup="togetherClass" lookupUrl="${ctx}/project/select/classes" size="25">
                                     <span style="width:190px;display:block;">XXXXX</span></th>就可以了