0

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

Knut Holm
  • 3,814
  • 4
  • 30
  • 54
Raghavendra
  • 249
  • 4
  • 11
  • 22

0 Answers0