Click here to Skip to main content
15,896,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,

HTML
<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. .
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900