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.

    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办