我正在使用 JSTL 标签。我有以下代码。
<c:set var="refreshSent" value="false"/>
现在变量 refreshSent 有 boolean 值还是字符串?
谢谢!
最佳答案
它将是一个 boolean 值。您可以通过在
中进行比较来检查它<c:if test="${refreshSent eq false}">
和
<c:if test="${refreshSent eq 'false'}">
第二个是字符串比较。
关于java - 使用 JSTL 标签将 boolean 值设置为变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12512547/