dear all,
please help me with this problem.
i wrote a code using tag <c:forEach></c:forEach>
but i am getting the following error :
org.apache.jasper.JasperException: /jsp/jstl/JSTLpage.jsp(5,0) No tag "forEach" defined in tag library imported with prefix "mine"
i am sending the code as well.
<%@ taglib prefix = 'mine' uri = 'DiceRoller'%>
<html>
<body bgcolor="red">
<table align = 'center'>
<mine:forEach var = 'bks' items='${requestScope.books}'>
<tr>
<td>${bks}</td>
</tr>
</mine:forEach>
</table>
</body>
</html>
i have appropriately copied jstl.jar in ROOT/web-inf folder.
my tld file is as follows which is in ROOT/web-inf/lib folder.
<?xml version="1.0" encoding="ISO-8859-1"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<tlib-version>1.2</tlib-version>
<uri>DiceRoller</uri>
<function>
<name>RollDiceTLD</name>
<function-class>TLD.RollDiceJava</function-class>
<function-signature>int rollDice(int)</function-signature>
</function>
</taglib>
please help me with this problem.
thanking you,
ajay vasudevan
scjp 1.4