• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enabling JSTL tags

 
vikas bala
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I tried to use JSTL core tags in my jsp.
The Supporting works i did are,

I put jstl.jar file in the WEB-INF directory too.

Further,
In Jsp I added,
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>


In web.xml I added,
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/lib/jstl.jar</taglib-location>
</taglib>

But still my core tags like <c:choose> | <c:if> ., etc are not identified and I'm getting a exception,

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

Note: I'm using myeclipse5.0 tool for developement.


I appreciate your help in advance.

Hugs
Vikas
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you forgot standard.jar, and you don't need to touch web.xml.
Please follow the following :
http://faq.javaranch.com/view?JstlTagLibDefinitions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic