weixin_33736832 2015-09-19 09:20 采纳率: 0%
浏览 281

从servlet重新加载jsp页面

I have a jsp page with a table. Every row of the table call a servlet that delete value from that row. Now I have to recall from servlet the same jsp page but I have to reload that for show the update. How can I do that??

this is the jsp calling servlet code

<tr class="row" data-href="${pageContext.request.contextPath}/adminServlet>
        <td><c:out value="${product.id}" /></td>
        <td><c:out value="${product.name}" /></td>
        <td><c:out value="${product.cost}" /></td> 
</tr>

and this is how I recall jsp page from servlet

RequestDispatcher rd=request.getRequestDispatcher("admin.jsp");    
rd.include(request,response); 
  • 写回答

1条回答 默认 最新

  • weixin_33694620 2015-09-19 09:37
    关注

    You can use ajax for this problem. Load table data in a jsp as a response from the servlet.

    评论

报告相同问题?

悬赏问题

  • ¥20 家用射频美容仪技术规格
  • ¥25 matlab数值溢出该怎么解决?
  • ¥15 大家帮我看看为什么错了
  • ¥15 unity互动琴弦抖动效果
  • ¥15 做了个的二极管反向饱和电流测量电路,但是测试达不到效果
  • ¥15 nginx无证书访问https失败
  • ¥15 树莓派启动AP热点传入数据
  • ¥15 multisim中关于74ls192n和DSWPK开关的问题(相关搜索:计数器)
  • ¥15 在误装Windows server2019 后如何利用Windows.old恢复?
  • ¥20 代码实现状态连接包过滤防火墙的设计与实现