• Register
0 votes
1.8k views

Problem :

I have already placed the JSTL JAR file in the WEB-INF/lib directory. But still, the JSP can't resolve the taglib. I get the below error:

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

If you are using maven then your pom's <dependencies> tag should look like bellow:

<dependencies>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet.jsp.jstl</groupId>
        <artifactId>javax.servlet.jsp.jstl-api</artifactId>
        <version>1.2.1</version>
    </dependency>
    <dependency>
        <groupId>taglibs</groupId>
        <artifactId>standard</artifactId>
        <version>1.1.2</version>
    </dependency>
</dependencies>

It is working for me.

9 7 4
38,600 points

Related questions

0 votes
1 answer 9 views
9 views
Problem: I have included this at the very top of my JSP page I already placed the JSTL JAR file in the WEB-INF/lib directory. But still, the JSP can't resolve the taglib. I get the below error: Can not find the tag library descriptor for &ldquo;http://java.sun.com/jsp/jstl/core&rdquo;
asked Apr 25 ummeshani 9k points
0 votes
0 answers 5 views
5 views
Problem: As I mentioned in my previous query, I'm having difficulties with my learning; I've tried searching the web but haven't been able to find adequate information; could you assist me in continuing my project?
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 2 views
2 views
Problem: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="com.library.controller.*"%> <%@ page import="com.library.dao.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*" %> <%@ page import="java. ... The Eclipse IDE is showing red underline and when I focus it the tag is : can not find the library descriptor for http://java.sun.com/jsp/jstl/core
asked 4 days ago anika11 32k points
0 votes
1 answer 8 views
8 views
Problem: As I mentioned in my previous query, I'm having difficulties with my learning; I've tried searching the web but haven't been able to find adequate information; could you assist me in continuing my project?
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 2 views
2 views
Problem: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="com.library.controller.*"%> <%@ page import="com.library.dao.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*" %> <%@ page import="java. ... The Eclipse IDE is showing red underline and when I focus it the tag is : can not find the library descriptor for http://java.sun.com/jsp/jstl/core
asked Apr 25 Moumita Bhowmick 12.4k points
0 votes
1 answer 45 views
0 votes
1 answer 5 views
5 views
Problem: I will request someone to answer my question. Please, I have searched on the web but I got no useful information for this. Now I am in difficulty continuing my learning.
asked Apr 1 zayed1 58.7k points
1 vote
1 answer 131 views
131 views
Problem : I have decided to learn JSF. I have started writing some code in JSF. If I try to run the application after entering the required URL then I start facing below exception. I am currently using Eclipse and the Tomcat7.0.35. I already added the Jstl.jar and jstl1 ... on above exception but I am not able to fix my error. I am looking for expert who can fix above JSF related exception for me.
asked May 15, 2020 Martin K 6.6k points
0 votes
1 answer 9 views
9 views
Problem: I am currently learning spring mvc and made an example "my app" which includes spring mvc and apache tiles. Everything works fine but in jsp i get this following error: here is my mainLayout.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" ... </html> before you ask, I have included all the spring ,tiles and jstl dependency in my pom. only the form tag gives error.
asked Apr 26 Moumita Bhowmick 12.4k points