1. I have copied the jstl.jar file from tomcat\webapps\jsp-examples\WEB-INF\lib\jstl.jar
to C:\tomcat\webapps\AllTopics\WEB-INF\lib.
2. When I run the
jsp file, I get the following
message.
According to TLD or attribute directive in tag file, attribute
test does not accept any expressions
3. The follwing code is used.
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head><title>Accessing a Scoped Value</title></head>
<body bgcolor="#FDF5E6" text="FF00FF">
<h2>Hello
<c:choose>
<c:when test="${empty param.userName}">
Esteemed Visitor
</c:when>
<c
therwise>
<c
ut value="${param.userName}" />
</c
therwise>
</c:choose>
</h2>
</body>
</html>
Why the error message results.