C:out语句带<c:if condition =“”in =“”jstl =“”

时间:2017-02-16 17:33:54

标签: jsp

=“”

我是jsp的新手,请引导我完成这个。 我有一个jsp页面,其中我有一个表,其中除了一列之外的所有值都是从DB中获取的。在一个列中我需要给出条件,请告诉我如何执行此操作..

<c:if test="${create==0 and secnbr eq null)"
<c:out value="${source}" default="name"
</c:if>
<c:if test ="${create==0 and secnbr ne null)"

1 个答案:

答案 0 :(得分:0)

这有用吗?

<td>
    <c:if test="${create==0 and secnbr eq null)">
        <c:out value="${source}" default="name">
    </c:if>
</td>
相关问题