response.sendRedirect() from Servlet to JSP does not seem to work

前端 未结 4 416
滥情空心
滥情空心 2020-12-11 14:59

I am writing a client server program. I am sending an arraylist from an android phone and I am able to receive the list also. After that I want the servlet to redirect to

4条回答
  •  忘掉有多难
    2020-12-11 15:26

    You can use this:

    response.sendRedirect(String.format("%s%s", request.getContextPath(), "/views/equipment/createEquipment.jsp"));
    

    The last part is your path in your web-app

提交回复
热议问题