开发者

Expression Language/ Comparing two parameters (JSP)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜