Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc 我有要删除的列表,带有复选框1或多个复选框,并希望使用Springs MVC将状态设置为0_Spring Mvc - Fatal编程技术网

Spring mvc 我有要删除的列表,带有复选框1或多个复选框,并希望使用Springs MVC将状态设置为0

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">

我有一个列表,它是来自jsp上的数据库的featch,我想使用复选框删除单行和多行,如何使用行id删除它我有jsp代码

<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}&nbsp;&nbsp;<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

            }
         }