0
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${"POST".equalsIgnoreCase(pageContext.request.method) && pageContext.request.getParameter("submit") !=null}">
</c:if>

This code segment I am getting this error. Please help me with this issue. Multiple annotations found at this line:

  • EL Syntax Error

1 Answers1

0

The issue is that you have embedded some double quotes inside the test string.

You should replace them by single quotes.

 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <c:if test="${'POST'.equalsIgnoreCase(pageContext.request.method) && pageContext.request.getParameter('submit') !=null}">
 </c:if>
obourgain
  • 8,856
  • 6
  • 42
  • 57