在jsp中遇到一点问题String literal is not properly closed by a double-quote是什么问题呀,我写的程序一直
<%@page contentType="text/html;charset=gb2312"%><%
String username=request.getParameter("username");
String password=request.getParameter("password");
String type=request.getParameter("type");
if(username.equals("admin")&&password.equals("admin"))
{
session.setAttribute("username",username);
session.setAttribute("password",password);
session.setAttribute("type",type);
if(type.equals("manager "))
response.sendRedirect("manager.jsp");
else if(type.equals("user"))
response.sendRedirect("user.jsp");
else{
out.print("<script language='JavaScript' type='text/JavaScript'>
alter("请正确填写信息!");</script> ");
response.sendRedirect("admin.jsp");
}
}
else{
out.print("<script>alert('请正确填写信息!');window.location.href='admin.jsp'</script>");
}
%>