response.sendRedirect跳转不成功!路径也没有错的

2025-04-30 22:12:15
推荐回答(1个)
回答1:

如果你jsp页面是在项目的page目录下建议如下写
response.sendRedirect(request.getContextPath() + "/page/index.jsp");
其他类似。

你的页面是在根目录下面
response.sendRedirect(request.getContextPath() + /index.jsp");