楼主的意思是没有密码的情况到了errorpage.jsp页面吗?
将String str="select * from manager where sysmanager=? and password=?";
改成
String strsql="select * from person where username=?";
if (password != null && "".equals(password))
{
strsql = strsql + " and password=?";
}
当然pstmt.setString(2,password);也要分情况
将String str="select * from manager where sysmanager=? and password=?";
改成
String strsql="select * from person where username=?";
if (password != null && "".equals(password))
{
strsql = strsql + " and password=?";
}
当然pstmt.setString(2,password);也要分情况
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货