84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
item.getAccount是得到null,为什么会显示出来,不是应该是什么都没有吗?
认证高级PHP讲师
el expression can solve your problem. As for why null is displayed, I personally think it’s because of the double quotes
I don’t know the syntax of jsp. If you convert it to a string, it will be displayed naturally, or you can use || to judge it
<%=item.getAccount() == null ? "" : item.getAccount()%>
This is the java code written in jsp. If it is null, it will definitely be displayed as nullShouldn’t it be done using scope${}?
${}
el expression can solve your problem.
As for why null is displayed, I personally think it’s because of the double quotes
I don’t know the syntax of jsp. If you convert it to a string, it will be displayed naturally, or you can use || to judge it
This is the java code written in jsp. If it is null, it will definitely be displayed as null
Shouldn’t it be done using scope
${}
?