用struts写的我们不知道为什么是Base.do呢,这点不解释了
空指针从你给的代码上看 应该student是Null
username.equals("wang") && password.equals("123")
改成
"wang".equals(username) && "123".equals(password)
再试试
At least in your function, student is null.
I am wondering what class are you writing? Student?
It seems that student is a member without initialization in your code.
几位楼上已经说了问题,楼主,好好调试调试吧
我感觉这代码应该从86行报错吧。怎么会是87行呢?