What is the difference, if any, between the keyword ‘eq’ and the operator ‘==’ in JSP Expression Language?
In code, what is the difference between:
<c:if test="${var1 eq var2}">some code</c:if>
and
<c:if test="${var1 == var2}">some code</c:if>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
eqexists (as well asne,lt, etc) so you can avoid using XML entity references (< is an XML character and would need to be escaped as<, for example), but they do the same thing.See Comparison operators in JSP for more info.