请高手指出错误
dx919 2010-12-16 10:41:31 <%
String name = request.getParameter("user");
String pass = request.getParameter("pass");
session.setAttribute("use", name);
if (session.getAttribute("user") != "") {
if (name.equals("1") && pass.equals("1")) {
response.sendRedirect("left.location.href='BBS.jsp'");
} else {
out.print("<Script>alert('用户名或密码错误,请重新登录');location.href='BBS1.jsp';</Script>");
}
}
%>