Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
    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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

jstl in eclipse  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I'm unable to use jstl in eclipse. It's not recognising the uri="http://java.sun.com/jsp/jstl/core".Although I've put the jstl.jar in WEB-INF/lib. Alternatively I've also tried to set the jstl.jar in run time dependencies............I'm waiting for reply.

Thanks
 
Shashi Ranjan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
I just added c.tld in WEB-INF/lib and it worked.
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
You should not extract the TLD ! You must add standard.jar in your PATH. Check this FAQ.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
Guys,
Eclipse error "Cannot find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" ideally have couple of reasons, most of them have been pointed out in the previous posts, the one and particularly important is as below. (which was actually the case with me)
Having this added in your jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
even after you have jstl.jar and standard.jar in the WEB-INF/lib directory, the only reason for this is the version of these two jar's.
defining taglib in the way "<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> " is required to have these jar's of version 1.2 (which are extracted from jakarta-taglibs-standard-1.1.2.zip) unfortunately you can never know the version of these jar's from their property
defining taglib in the way "<%@ taglib uri="http://java.sun.com/jstl/core"; will require 1.0 version of these jar's.
Hope it helps.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Pravin, welcome to Java Ranch.

I know that you are trying to be helpful, but please don't wake the zombies.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am using IBM RAD7.5 and WebSphere application server 7.0. I have been to the Project Facets options and activated JavaServer Faces 1.1 and JSTL 1.1.

I am trying to use the code given in HeadFirst Servlets and JSPs.

My code is as follows-->

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<%@ taglib prefix="mine" uri="DiceFunctions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
${ mine:rollIt()_ }
</f:view>
</body>
</html>

Only the text colored in red shows error. Rest is fine. The first error is that 'cannot find taglib descriptor' and the second is 'EL syntax error'.

Please tell me how to solve this problem.

Also, is there a standard way of making TLDs in Eclipse or RAD? I have made it manually by saving an XML file as .tld

Please help. Thanks!
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Junaid, please ask this question in a new topic.
 
I will suppress my every urge. But not this shameless plug:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!