开发者

Expression Language/ Comparing two parameters (JSP)

开发者 https://www.devze.com 2023-02-23 14:33 出处:网络
I have a pretty simple question. If I\'m comparing two parameters in a JSP page using c:if, whi开发者_运维技巧ch is correct?

I have a pretty simple question. If I'm comparing two parameters in a JSP page using c:if, whi开发者_运维技巧ch is correct?

<c:if test="${order.id}==${item.id}">

or

<c:if test="${order.id==item.id}">

?


Second one. ${} denotes EL expression, inside which you perform comparison.

0

精彩评论

暂无评论...
验证码 换一张
取 消