• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Enabling JSTL tags

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic