问题描述
如果其他条件使用JSTL,我想写一行。 以下是代码
<c:when test="${addressMap.key == 'default-address-10' || addressMap.key == 'default-address-6' || addressMap.key == 'default-address-14' || addressMap.key == 'default-address-15' || addressMap.key == 'default-address-13' }">
<a:checkBox id="${addressMap.key}" name="${addressMap.key}" checked="true">
<c:import url="./test-buyers-display-address.jsp" />
</a:checkBox>
</c:when>
<c:otherwise>
<a:checkBox id="${addressMap.key}" name="${addressMap.key}">
<c:import url="./test-buyers-display-address.jsp" />
</a:checkBox>
</c:otherwise>
但给我以下错误-Caused by: org.apache.jasper.JasperException: javax.servlet.servletexception: javax.servlet.jsp.JspException: javax.servlet.servletexception: javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)