登录不成功怎么回事呢
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
request.setCharacterEncoding("utf-8");
%>
<jsp:useBean id="loginUser" class="com.po.Users" scope="page"/>
<jsp:useBean id="userDAO" class="com.dao.UsersDAO" scope="page"/>
<jsp:setProperty property="*" name="loginUser"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if(userDAO.userLogin(loginUser))
{
session.setAttribute("loginUser",loginUser.getUsername() );
request.getRequestDispatcher("sucess.jsp").forward(request, response);
}
else
{
response.sendRedirect("failure.jsp");
}
%>