<c:if test="${restore=!null}">
<span class="STYLE7">回复内容:<%=restore%></span></c:if>我的意思是 如果回复内容为空的话 就不显示 回复内容,我是这么写的 但是不对
<span class="STYLE7">回复内容:<%=restore%></span></c:if>我的意思是 如果回复内容为空的话 就不显示 回复内容,我是这么写的 但是不对
解决方案 »
- JAVABEAN 取值链接
- 如何捕获:No action config found for the specified url
- dwr页面调用问题
- 无验证信息发送邮件问题,在线等待。。。。。
- 我的SSH框架下的项目中Session(会话)取值为null.请帮解决下
- jsp中如何做到当列表的宽度很小时,要只显示指定长度的字符,当有字符未显示时,后面用上省略号,鼠标放上去时会显示全部信息?
- 清空数据的难题,高手帮忙看看!
- 一个简单的web例子。怎么也无法运行
- 谁有实现录入跟修改的时候保存本地图片的路径跟文件名的代码
- ajax, jquery json jsp
- common-net上传文件中文问题
- 项目开发中遇到问题了,高人来拿分 300(或者更多)
!= 写反了
<span class="STYLE7">回复内容:<%=restore%></c:if>从数据库中查restore为空的时候显示 回复内容:null
我的意思是 当restore为空的时候 回复内容不显示 不知道我的意思大家理解不
<span class="STYLE7">回复内容: <%=restore%> </c:if> 试试这样,呵呵
<c:if test="${not empty restore}">
<span class="STYLE7">回复内容: <%=restore%> </c:if>还是显示回复内容:null怎么才能让回复内容:null这几个字不显示出来不知道我写的语句有什么问题
<span class="STYLE7">回复内容: <%=restore%> </c:if>
我也不知道对不对
直接:
<span class="STYLE7">回复内容:${restore}
<%String restore=rs.getString("restore");
pageContext.setAttribute("restore",restore)
%>
<c:if test="{empty restore}">
<span class="STYLE7">回复内容: <%=restore%> </c:if>
<c:if test="${restore != ''}">
<span class="STYLE7">回复内容: <%=restore%> </span> </c:if>试试这个,或者<c:if test="${restore != null && restore != ''}">
<c:if test="${!empty restore}">...</if>