<%@ page language="java" contentType="text/html; charset=utf-8"??? pageEncoding="utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">?<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><html xmlns="http://www.w3.org/1999/xhtml">?? ?<head>?? ??? ?<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />?? ??? ?<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE" />?? ??? ?<title>內(nèi)容列表頁(yè)面</title>?? ??? ?<link href="<%= basePath %>Resources/css/all.css" rel="stylesheet" type="text/css" />?? ??? ?<script src="<%= basePath %>Resources/js/common/jquery-1.8.0.min.js"></script>?? ??? ?<script src="<%= basePath %>Resources/js/back/list.js"></script>?? ?</head>?? ?<body style="background: #e1e9eb;">?? ??? ?<form action="<%= basePath %>list.action" id="mainForm" method="post">?? ??? ??? ?<input type="hidden" name="currentPage" id="currentPage" value="${page.currentPage}"/>?? ??? ??? ??? ??? ??? ?<div class="right">?? ??? ??? ??? ?<div class="current">當(dāng)前位置:<a href="javascript:void(0)" style="color:#6E6E6E;">內(nèi)容管理</a> > 內(nèi)容列表</div>?? ??? ??? ??? ?<div class="rightCont">?? ??? ??? ??? ??? ?<p class="g_title fix">內(nèi)容列表 <a class="btn03" href="#">新 增</a> <a class="btn03" href="javascript:deleteBatch('<%=basePath%>');">刪 除</a></p>?? ??? ??? ??? ??? ?<table class="tab1">?? ??? ??? ??? ??? ??? ?<tbody>?? ??? ??? ??? ??? ??? ??? ?<tr>?? ??? ??? ??? ??? ??? ??? ??? ?<td width="90" align="right">指令名稱:</td>?? ??? ??? ??? ??? ??? ??? ??? ?<td>?? ??? ??? ??? ??? ??? ??? ??? ??? ?<input name="command" type="text" class="allInput" value="${command}"/>?? ??? ??? ??? ??? ??? ??? ??? ?</td>?? ??? ??? ??? ??? ??? ??? ??? ?<td width="90" align="right">描述:</td>?? ??? ??? ??? ??? ??? ??? ??? ?<td>?? ??? ??? ??? ??? ??? ??? ??? ??? ?<input name="description" type="text" class="allInput" value="${description}"/>?? ??? ??? ??? ??? ??? ??? ??? ?</td>?? ???????????????????????????? <td width="85" align="right"><input type="submit" class="tabSub" value="查 詢" /></td>?? ?????? ??? ??? ??? ??? ??? ?</tr>?? ??? ??? ??? ??? ??? ?</tbody>?? ??? ??? ??? ??? ?</table>?? ??? ??? ??? ??? ?<div class="zixun fix">?? ??? ??? ??? ??? ??? ?<table class="tab2" width="100%">?? ??? ??? ??? ??? ??? ??? ?<tbody>?? ??? ??? ??? ??? ??? ??? ??? ?<tr>?? ??? ??? ??? ??? ??? ??? ??? ???? <th><input type="checkbox" id="all" onclick="#"/></th>?? ??? ??? ??? ??? ??? ??? ??? ???? <th>序號(hào)</th>?? ??? ??? ??? ??? ??? ??? ??? ???? <th>指令名稱</th>?? ??? ??? ??? ??? ??? ??? ??? ???? <th>描述</th>?? ??? ??? ??? ??? ??? ??? ??? ???? <th>操作</th>?? ??? ??? ??? ??? ??? ??? ??? ?</tr>?? ??? ??? ??? ??? ??? ??? ??? ?<c:forEach items="${messagelist}" var="message" varStatus="status">?? ??? ??? ??? ??? ??? ??? ??? ??? ?<tr? <c:if test="${status.index % 2 != 0}">style='background-color:#ECF6EE;'</c:if>>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<td><input type="checkbox"? name="id" value="${message.id}"/></td>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<td>${status.index + 1}</td>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<td>${message.command}</td>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<td>${message.description}</td>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<td>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<a href="#">修改</a> ?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?<a href="${basePath}DeleteOneServlet.action?id=${message.id}">刪除</a>?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ?</td>?? ??? ??? ??? ??? ??? ??? ??? ??? ?</tr>?? ??? ??? ??? ??? ??? ??? ??? ?</c:forEach>?? ??? ??? ??? ??? ??? ??? ?</tbody>?? ??? ??? ??? ??? ??? ?</table>?? ??? ??? ??? ??? ??? ?<div class='page fix'>?? ??? ??? ??? ??? ??? ??? ?共 <b>${page.totalNumber}</b> 條?? ??? ??? ??? ??? ??? ??? ?<c:if test="${page.currentPage != 1}">?? ??? ??? ??? ??? ??? ??? ??? ?<a href="javascript:changeCurrentPage('1')" class='first'>首頁(yè)</a>?? ??? ??? ??? ??? ??? ??? ??? ?<a href="javascript:changeCurrentPage('${page.currentPage-1}')" class='pre'>上一頁(yè)</a>?? ??? ??? ??? ??? ??? ??? ?</c:if>?? ??? ??? ??? ??? ??? ??? ?當(dāng)前第<span>${page.currentPage}/${page.totalPage}</span>頁(yè)?? ??? ??? ??? ??? ??? ??? ?<c:if test="${page.currentPage != page.totalPage}">?? ??? ??? ??? ??? ??? ??? ??? ?<a href="javascript:changeCurrentPage('${page.currentPage+1}')" class='next'>下一頁(yè)</a>?? ??? ??? ??? ??? ??? ??? ??? ?<a href="javascript:changeCurrentPage('${page.totalPage}')" class='last'>末頁(yè)</a>?? ??? ??? ??? ??? ??? ??? ?</c:if>?? ??? ??? ??? ??? ??? ??? ?跳至 <input id="currentPageText" type='text' value='${page.currentPage}' class='allInput w28' /> 頁(yè) ?? ??? ??? ??? ??? ??? ??? ?<a href="javascript:changeCurrentPage($('#currentPageText').val())" class='go'>GO</a>?? ??? ??? ??? ??? ??? ?</div>?? ??? ??? ??? ??? ?</div>?? ??? ??? ??? ?</div>?? ??? ??? ?</div>?? ???? </form>?? ?</body></html>點(diǎn)擊黑色標(biāo)記的 “刪除” 就會(huì)出現(xiàn)下面的情況
Mybatis 單條刪除不能實(shí)現(xiàn)
好好認(rèn)真學(xué)習(xí)
2017-06-22 10:32:42