JSP页面报错 不知道啥情况 在开发 环境就没问题,上测试环境 就报错

The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)
报错的那几行如下
303: <td>
304: <c:set var="pCount" scope="request" value="${fn:length(suborder.orderProductList)}"/>
305: <c:if test=" ${suborder.actuallyAmount!=null and pCount >0}">
306: ${suborder.actuallyAmount/pCount}
307: </c:if>
308: </td>

求教 啊 大神~~~~

第1个回答  2015-07-07

The method setTest(boolean) in the type IfTag is not applicable for the arguments (String)

不是提示 test 不支持 String 格式的参数么

就只有

305:   <c:if test=" ${suborder.actuallyAmount!=null and pCount >0}">

这行有test

那说明 ${suborder.actuallyAmount!=null and pCount >0} 这玩意而是不是有问题

如果开发环境没问题

那测试环境

    是不是正则表达式不识别啊 

    测试环境数据有问题 测下pCount suborder对象是否正常

根据你贴出来的部分代码我只能推理出这几个可能...

本回答被提问者采纳
第2个回答  2018-01-04
偶然看到这个问题,应该是这里行代码:
305: <c:if test=" ${suborder.actuallyAmount!=null and pCount >0}">
其中少了一个空格,应该改为这样:
305: <c:if test=" ${suborder.actuallyAmount!=null and pCount >0 }">

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网