调用bootstrap模型的链接 [英] calling to bootstrap model for a link

查看:90
本文介绍了调用bootstrap模型的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我遇到了一个具有挑战性的问题。它正在删除一条记录,因为我有一个链接。我的删除代码工作正常。使我的网页有吸引力我想要确认删除所以我想使用bootstrap模型。因此,当我点击删除链接时会弹出模型进行确认,如果我单击是,则记录应该删除。我的代码如下,



 <   tr  >  

< td > $ {teacher.getTeacherName()} < / td >
< td > $ {teacher.getFormatedDoj()} < / td >
< span class =code-keyword>< td > $ {老师。 getContactNo()} < / td >
< td > $ {老师.getEmail()} < / td >
< td > < a < span class =code-attribute> href = <% = request.getContextPath()%> /pages/teacher_details/view_teacher_info.jsp?teacherId = $ {teacher.getTeacherId()} > 查看< / a >
< / td >
< td > < a href = <% = request.getContextPath()%> /pages/teacher_details/teacher_info.jsp?teacherId = $ {teacher.getTeacherId()} > 编辑< / a >
< / td >
< td > < a href = <% = request.getContextPath()%> / controller / TeacherManagementController?flowName = DELETE_TEACHER_INFO& teacherId = $ {teacher.getTeacherId()} > 删除< / a < span class =code-keyword>>
< / td >
< / tr >







我在这里遇到的另一个挑战是,当我向控制器打电话时,我正在通过teacherId删除一个特定的记录所以在这里我已经通过teacherId到bootstrap模型jsp页面。那么如何在删除链接上调用bootstrap模型jsp页面以及如何在模型jsp页面中获取teacherId来调用控制器进行删除。请帮帮我。 。

解决方案

{teacher.getTeacherName()} < / td >
< td >


{teacher.getFormatedDoj()} < / td >
< td >


< blockquote> {teacher.getContactNo()} < / td >
< td >

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

解决方案

{teacher.getTeacherName()}</td> <td>


{teacher.getFormatedDoj()}</td> <td>


{teacher.getContactNo()}</td> <td>


这篇关于调用bootstrap模型的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆