当前位置: 技术问答>java相关
关于登陆验证:equals的用法!
来源: 互联网 发布时间:2017-04-19
本文导语: check.jsp 当我输入goldcity 123 时报错: null acountnull null null your acount or password is error, please try again tongxingongcheng acountgoldcity 123 代卓松 your acount or password is error, please try again tongxingongcheng ...
check.jsp
当我输入goldcity 123
时报错:
null acountnull null null your acount or password is error, please try again tongxingongcheng acountgoldcity 123 代卓松 your acount or password is error, please try again tongxingongcheng acount your acount or password is error, please try again tongxingongcheng acount your acount or password is error, please try again xinxigongcheng acountdaizs 1234 呆孩 your acount or password is error, please try again
我觉得这样做的答案可以的啊!
但是,就是不能得到:
login sucessful
求解
|
if((acount.equals(loginID))&&((password.equals(loginPass)))
->
if((acount.equals(loginID))&&(password.equals(loginPass)))
->
if((acount.equals(loginID))&&(password.equals(loginPass)))
|
if((acount.equals(loginID))&&((password.equals(loginPass)))
-->
if(acount.equals(loginID)&&password.equals(loginPass))
-->
if(acount.equals(loginID)&&password.equals(loginPass))