Categories Java String comparison in JSTL Post author By yuval Post date July 15, 2004 No Comments on String comparison in JSTL To compare the value of two strings in Java one would simply do: string1.equals(string2) Yet JSTL EL does not use the . notation the same way. Instead, JSTL actually works the right way: <c:if test="string1 == string2" /> Different… ← Creating application-wide parameters with Tomcat → Converting an ArrayList to a single-typed Array Leave a ReplyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Δ