Announcement Announcement Module
Collapse
No announcement yet.
Can not find the tag library descriptor for http java.sun.com jsp jstl core Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    when I create a spring mvc project, the "home.jsp" file appear the error:"can not find the tag library descriptor for http java.sun.com jsp jstl core", but I find the pom.xml include the context: "
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    </dependency>

    The same project with 2.7.2 release version can work.
    why?

  • #2
    the problem is with 2.8.0.release.

    Comment


    • #3
      Hi. I've raised: https://issuetracker.springsource.com/browse/STS-2249 to track this. A workaround for you is to change the reference to remove the jsp/ component from the name (as discussed in the jira).

      Andy

      Comment


      • #4
        Here is the steps I followed to fix the issue:

        Remove any jstl.jar from lib
        Download jstl jar from http://search.maven.org/remoteconten...jstl-1.2.1.jar and add this jar to your lib folder.
        Add : <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> on your jsp's
        Last edited by Dinesh Acharya; Dec 19th, 2013, 06:15 AM.

        Comment


        • #5
          Hey!

          Thanks for sharing your solution here. Much appreciated!

          Cheers,
          -Martin

          Comment


          • #6
            This posts is very informative. Thank you!

            Comment

            Working...
            X