calling to bootstrap model for a link

浪尽此生 提交于 2019-12-13 02:56:47

问题


Today I have got one challenging problem . It is deleting a record , for that I have a link. My delete code is working fine. to make my web page attractive I want confirmation to delete so I want to use bootstrap model. So when I click on delete link it pops up model for confirmation , if I click yes the record should delete. My code is as follow,

<tr>

<td>${teacher.getTeacherName()}</td>
<td>${teacher.getFormatedDoj()}</td>
<td>${teacher.getContactNo()}</td>
<td>${teacher.getEmail()}</td>
<td><a  href="<%=request.getContextPath()%>/pages/teacher_details/view_teacher_info.jsp?teacherId=${teacher.getTeacherId()}">View</a>
</td>
<td><a  href="<%=request.getContextPath()%>/pages/teacher_details/teacher_info.jsp?teacherId=${teacher.getTeacherId()}">Edit</a>
</td>
<td><a href="<%=request.getContextPath()%>/controller/TeacherManagementController?flowName=DELETE_TEACHER_INFO&teacherId=${teacher.getTeacherId()}">Delete</a>
</td>
</tr>

and one more challenge I have here is, when calling to the controller I am passing teacherId to delete a perticular record so here I have pass teacherId to bootstrap model jsp page . So how can I make a call to bootstrap model jsp page at delete link and how to get teacherId in model jsp page to call a controller for delete . Please help me in this. .

来源:https://stackoverflow.com/questions/22846487/calling-to-bootstrap-model-for-a-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!