• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL exception doubt

 
Rajendra Nath
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
I'm trying to execute the HFSJ JSTL example, but it's showing an exception.

for the first example of <c:forEach> example. i made a servlet, which has a an array, and i set it as an attribute at request scope. and i forwarded the request to the jsp.

In JSP, i used the taglib directive, i.e, <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core " %>

But, when i deployed and tried to exucute this application, the container is throwing an exception:

org.apache.jasper.JasperException:The absolute uri:http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with the application.

what is the solution for this exception.

And one more thing. Even i copied the standard jstl file also into my WEB-INF/lib dir.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you have both standard.jar and jstl.jar, and check the version of your web.xml too. It must be set to 2.4 in your case.

http://faq.javaranch.com/view?JstlTagLibDefinitions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic