• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL program not executed

 
vedala V.S.Bharani kumar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
just mention this in ur web.xml


hope this helps

regards
-santosh
[ April 26, 2006: Message edited by: singh santosh ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic