if((ss.trim()).equals(pw))
response.sendRedirect("dingdan.jsp");
else
response.sendRedirect("../indexlogerro.htm");
原来除了用<jsp:forward page="url">还可以这样做
给自己留一笔
博客介绍了JSP中页面跳转的方法,除了使用<jsp:forward page=\url\>,还可通过代码判断条件,使用response.sendRedirect进行页面跳转,如判断条件成立跳转至dingdan.jsp,不成立则跳转至indexlogerro.htm。
if((ss.trim()).equals(pw))
response.sendRedirect("dingdan.jsp");
else
response.sendRedirect("../indexlogerro.htm");
原来除了用<jsp:forward page="url">还可以这样做
给自己留一笔
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

被折叠的 条评论
为什么被折叠?