why my JSP can not recogonize the JSTL tag??
843838Mar 17 2007 — edited Jan 24 2008My hello.jsp code is like follows:
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<html>
<head>
<title><fmt:message key="title"/></title>
</head>
<body>
<h1><fmt:message key="heading"/></h1>
<p><fmt:message key="greeting"/> <c:out value="${model.now}"/></p>
<h3>Products</h3>
<c:forEach items="${model.products}" var="prod">
<c:out value="${prod.description}"/> <i>$<c:out value="${prod.price}"/></i><br><br>
</c:forEach>
</body>
</html>
When I start the tomcat server and run my application ,the tomcat shows the error message:
org.apache.jasper.JasperException: /WEB-INF/jsp/hello.jsp(5,17) No tag "" defined in tag library imported with prefix "fmt"
But I do import the tag library, why it still show the error that No tag "" defined in tag library ???
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon
Message was edited by:
Mellon