首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

Struts1 C:if跟C:choose

2012-10-08 
Struts1 C:if和C:choosec:choosec:when test${inda_indapay_cardCustomerForm.customerKind eq zrr

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>

热点排行