Forums Register Login

JSTL program not executed

+Pie Number of slices to send: Send
Dear Friends,

I copy the jstl.jar file into my WEB-INF/lib to execute a program of JSTL.
The program is as follows.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html><body>
<table>
<c:forEach var ="movie" items="${movielist}">
<tr>
<td> ${movie} </tD>
</tR>
</c:forEach>
</table>
</body></html>

Also I write a servlet program

String movielist={"aaa","ccc"};
req.setAttribute("movielist",movielist);


But while executing JSTL I get the following error.

uri:http://java.sun.com/jsp/jstl/core cat't be resolved in either web.xml (or) the jar files deployed with this application.

What is wrong in this and what can i do to execute jstl programs?
Is there any configuration to execute custom tags, jstl programs

Thanks for all who give immediate reply.
+Pie Number of slices to send: Send
hi ,
just mention this in ur web.xml


hope this helps

regards
-santosh
[ April 26, 2006: Message edited by: singh santosh ]
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 453 times.
Similar Threads
deploying jstl problem
JSTL pg 437 HFSJ
error while using taglib for JSTL
can't run jstl in jsp
JSTL Example
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:26:37.