JSTL c:if does not recognize String inside ${} and causes EL syntax error
问题 Why are the "POST" and "submit" parts of this code highlighted in a different color in my IDE? Also the syntax highlighter here doesn't highlight them in same color. <c:if test="${"POST".equalsIgnoreCase(pageContext.request.method) && pageContext.request.getParameter("submit") !=null}"> </c:if> Does that mean that EL does not recognize the string and so gives me an EL syntax error? How can I solve this? 回答1: Inside the <c:if> , your test attribute is a also a string, which is set with double