读书人

Struts1 C:if跟C:choose

发布时间: 2012-10-08 19:54:56 作者: rapoo

Struts1 C:if和C:choose

<c:choose>
<c:when test="${inda_indapay_cardCustomerForm.customerKind eq 'zrr'}">??
...
...
</c:when>
? <c:when test="${inda_indapay_cardCustomerForm.customerKind eq 'fr'}">
...
...
</c:when>
<c:otherwise>
...
...
</c:otherwise>
</c:choose>

?

?

为了达到有个otherwise默认值的效果,在action=init方法中,对customerKind 进行赋值操作。

?<c:if test="${inda_indapay_cardCustomerForm.customerKind eq 'zrr'}">??

...

...

</c:if>
? <c:if test="${inda_indapay_cardCustomerForm.customerKind eq 'fr'}">

...

...

</c:if>

读书人网 >操作系统

热点推荐