difference between eq and == in JSP

后端 未结 1 1120
深忆病人
深忆病人 2021-02-03 20:28

What is the difference, if any, between the keyword \'eq\' and the operator \'==\' in JSP Expression Language?

In code, what is the difference between:

&         


        
相关标签:
1条回答
  • 2021-02-03 20:55

    eq exists (as well as ne, lt, etc) so you can avoid using XML entity references (< is an XML character and would need to be escaped as &lt;, for example), but they do the same thing.

    See Comparison operators in JSP for more info.

    0 讨论(0)
提交回复
热议问题