Spring mvc 我有要删除的列表,带有复选框1或多个复选框,并希望使用Springs MVC将状态设置为0
我有一个列表,它是来自jsp上的数据库的featch,我想使用复选框删除单行和多行,如何使用行id删除它我有jsp代码Spring mvc 我有要删除的列表,带有复选框1或多个复选框,并希望使用Springs MVC将状态设置为0,spring-mvc,Spring Mvc,我有一个列表,它是来自jsp上的数据库的featch,我想使用复选框删除单行和多行,如何使用行id删除它我有jsp代码 <table id="example" class="table table-bordered table-striped dashboardtable" cellspacing="0" > <thead class="thead">
<table id="example" class="table table-bordered table-striped dashboardtable" cellspacing="0" >
<thead class="thead">
<tr>
<th class="head" style="width:14%"><span>Serial Number</span></th>
<th class="head" ><span>Images List</span></th>
<th class="head"><span>Image Preview</span></th>
<th class="head" ><span>Email Id</span></th>
<th class="head" ><span>Sent Mail Time Span</span></th>
<th class="head" ><span>Resend Image</span></th>
<th></th>
<th class="head"><input type="checkbox" id="selecctall"/>Select All</th>
</tr>
</thead>
<tbody>
<c:forEach items="${emailImagesList}" var="al">
<tr>
<td style="width:14%">${al.serialNumber}</td>
<td >${al.mailImageName}</td>
<td><img src="<%=request.getContextPath()%>/emailImage/${al.id}/" height="100" width="150" ></td>
<td>${al.emailId} <img src="<%=request.getContextPath()%>/resources/images/edit.png" onclick="showpopup1('${al.id},${al.emailId}');"/></td>
<td>${al.mailSentTime}</td>
<td><a href="#" onclick="showpopup('${al.id},${al.emailId}');">Resend Image</a></td>
<td> <img onclick="javascript:exportToForm('${al.id}')" src="<%=request.getContextPath()%>/resources/images/delete.png" /></td>
<td><input class="checkbox1" type="checkbox" name="${al.id}"/><a href="#" onclick="javascript:deleteToForm('${al.id}')" >delete</a></td>
</tr>
</c:forEach>
序列号
图像列表
图片预览
电子邮件Id
发送邮件的时间跨度
重发图像
全选
${al.serialNumber}
${al.mailImageName}
/emailImage/${al.id}/“height=“100”width=“150”>
${al.emailId}/resources/images/edit.png“onclick=“showpopup1('${al.id},${al.emailId}');”/>
${al.mailSentTime}
/参考资料/图片/删除.png“/>
剧本是
函数deleteToForm(id){
var del=confirm(“按Ok删除!”);
如果(del==true){
window.location=“/deleteImageByUser?id=“+id
}
}
如何获取所有表列表id以及它的状态如何为0,您能否澄清您的问题?我有一个类似jsp的数据库中的列表,我想使用单行和多行复选框删除它,如何使用行id删除它
var del = confirm("Press Ok to delete!");
if (del == true ) {
window.location="<%=request.getContextPath()%>/deleteImageByUser?id="+id
}
}