我用的ECLISPSE为何运行无法跳转
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String username="";
String password="";
request.setCharacterEncoding("utf-8");//防止中文乱码
username=request.getParameter("username");
password=request.getParameter("password");
session.setAttribute("loginuser", "username");
if("admin".equals(username)&&"admin".equals(password)){
request.getRequestDispatcher("login_success.jsp");
}
else{
response.sendRedirect("login_false.jsp");
}
%>
根据课程做的登陆页面,密码输入失败这能成功跳转到login_false.jsp,如果密码输入正确就出现空白页,求解答