Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

why my JSP can not recogonize the JSTL tag??

843838Mar 17 2007 — edited Jan 24 2008
My 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2008
Added on Mar 17 2007
6 comments
900 views