<分区>
Possible Duplicate:
Evaluate empty or null JSTL c tags
我正在将 scriptlet 重构为 JSTL 和 EL,我想知道如何在 JSTL/EL 中编写以下内容:
if(sokandeList != null && sokandeList.size() > 0) { %>
...
我不知道如何测试 null 并且 AFAIK EL 只能在此上下文中访问 getter,因此我必须将方法 getSize() 添加到 sokandeList 类。正确的? JSTL/EL 表达式应该是什么样的?感谢您的帮助