permaculture playing cards*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Enabling JSTL tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Enabling JSTL tags" Watch "Enabling JSTL tags" New topic
Author

Enabling JSTL tags

vikas bala
Greenhorn

Joined: Dec 26, 2006
Posts: 19
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


hugs <br />Vikas
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

you forgot standard.jar, and you don't need to touch web.xml.
Please follow the following :
http://faq.javaranch.com/view?JstlTagLibDefinitions


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enabling JSTL tags
 
Similar Threads
Taglib uri for jstl core??
Accessing Property(array object) in a Bean using EL
JSTL - abolute uri cannot be resolved
jstl problem
Unable to load Class