小编Neh*_*arg的帖子

如何在JSTL中查找HashMap是否为空/ null?

我的控制器里有这样的东西:

model.attribute("hiringManagerMap",hiringManagerMap);
Run Code Online (Sandbox Code Playgroud)

hiringManagerMap在我的jsp中访问它并在选项中显示字符串值.

我只有在Map不为null时才需要显示该字段.

我试过了<c:if test=${!hiringManagerMap['empty']}>.但是,它不起作用.即使Map不为空,它也不起作用.

请帮忙!!

jsp jstl hashmap

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

hashmap ×1

jsp ×1

jstl ×1