response.sendRedirect跳转不成功!路径也没有错的
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/11 09:58:17
response.sendRedirect跳转不成功!路径也没有错的
if (rs.next()) {
if (userclass.equals("挂号")) {
response.sendRedirect("index.jsp");
}else if (userclass.equals("开处方")) {
response.sendRedirect("User.jsp");
}
} else {
response.sendRedirect("logon.jsp");
}
if (rs.next()) {
if (userclass.equals("挂号")) {
response.sendRedirect("index.jsp");
}else if (userclass.equals("开处方")) {
response.sendRedirect("User.jsp");
}
} else {
response.sendRedirect("logon.jsp");
}
![response.sendRedirect跳转不成功!路径也没有错的](/uploads/image/z/17330172-60-2.jpg?t=response.sendRedirect%E8%B7%B3%E8%BD%AC%E4%B8%8D%E6%88%90%E5%8A%9F%21%E8%B7%AF%E5%BE%84%E4%B9%9F%E6%B2%A1%E6%9C%89%E9%94%99%E7%9A%84)
如果你jsp页面是在项目的page目录下建议如下写
response.sendRedirect(request.getContextPath() + "/page/index.jsp");
其他类似.
你的页面是在根目录下面
response.sendRedirect(request.getContextPath() + /index.jsp");
response.sendRedirect(request.getContextPath() + "/page/index.jsp");
其他类似.
你的页面是在根目录下面
response.sendRedirect(request.getContextPath() + /index.jsp");
response.sendRedirect ("index.jsp") 和
请找出response sendRedirect(response encodeURL(ABC));与response
response对象的sendRedirect方法的功能是什么?常在什么情况下使用?
response.sendRedirect(request.getContextPath()+"/index.jsp")
jsp+servlet跳转问题: Cannot call sendRedirect() after the respon
要是没有错的
托福口语试音部分是不是不提示直接跳转就是成功了?不成功会有提示吗?
Activity的几种跳转方式
不成功
“不成功,
有没有错用成语的现象,
有没有错的句子