--Environment - Windows10 - Apache Tomcat 8.5.47 - Eclipse Version: Oxygen.3a Release (4.7.3a) - Java version 1.8.0_231
Caused by: org.xml.sax.SAXParseException:element"c:choose"Prefix"c"Is not bound.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
...
<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<c:choose>
<c:when test="${Condition 1}" >
...Process 1...
</c:when>
<c:when test="${Condition 2}" >
...Process 2...
</c:when>
</c:choose>
<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
...abridgement..
--Reference -Use of JSTL core tag library --Qiita -Java JSTL custom tag introduction and usage example sample (core, i18n) | ITSakura
If you define the prefix c in the JSP file and a compile error occurs, place the jar file because there is no core tag library in the first place.
Recommended Posts