java - jsp实现登陆,字符串问题
伊谢尔伦
伊谢尔伦 2017-04-17 17:00:28
0
4
547
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
Peter_Zhu

Is it empty because the user was not found?

伊谢尔伦

The error message contains the number of lines of code and a null pointer

刘奇

First of all, both of you are of type String, so if there is no combination of numbers and letters, there will be a null pointer. I don't see the implementation of dao from your code. It's hard to say. It may be that the value of username is not found in the database, so it is empty. Your judgment is not very rigorous. If you don’t fill in the password, a null pointer exception will occur

Ty80

Try password!=null

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!