日期:2014-05-17  浏览次数:20640 次

请教一个JSP标签的问题
我用servlet实现文件上传,相关的包都引入了,然后在jsp显示结果时有一些问题
我的原意是判断字段info非空,具体情况是这样的:
<c:if test="${requestScope.info!=null}">    
       alert('${requestScope.info}');
       form.submit();
</c:if>
但是在c:if下显示红线,报错误为:
Multiple annotations found at this line:
- Syntax error on token "<", delete this token
- Syntax error on token "if", delete this  token
貌似这种判断对象非空的写法不对,求大神指教正确写法!
JSP c:if 标签 判断

------解决方案--------------------
  <c:if test="${requestScope.info not empty}">
   </c:if>
not empty 都是关键字 会变色的  意思 你应该知道 不用我说了吧