看看一段jsp登录代码
while(rs.next())
{ String strstr=rs.getString(1);
out.print(buttonName);
out.print(strstr);
out.print(buttonPass);
if(strstr.equals(buttonPass))
{out.print(buttonPass);
response.sendRedirect("Nteacher.jsp");
}
else{out.print("it is wrong"); }
}
}
catch(SQLException e){System.out.print(e);}
其中butonName 是用户输入的用户名
strstr是数据库里返回的拥护密码
buttonPass 是拥护输入的密码,
已经输出来strstr和buttonpass的值一样
可结果是
apple pple pple it is wrong
怎么就不跳转呀,一夜拉,救救我吧