Search code examples
jspjstl

Can not find the tag library descriptor for "http://www.atg.com/taglibs/json"


I am trying to use the JSON taglib to my JSP page but i am getting this error

Can not find the tag library descriptor for "http://www.atg.com/taglibs/json"

I have added the tag lib,

<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>

I am using environment Java 1.8

please give me any suggestion if i can parse JSON data in JSP in any other way.

I have added the screenshot please see below,

enter image description here


Solution

  • Finally, I found what is the problem.It's missing the JSON-taglib dependency.

    You need to add the below dependency,

    <!-- https://mvnrepository.com/artifact/atg.taglib.json/json-taglib -->
    <dependency>
        <groupId>atg.taglib.json</groupId>
        <artifactId>json-taglib</artifactId>
        <version>0.4.1</version>
    </dependency>
    

    If you get an error like missing artifact just download the jar and pom file from below link and put to your c:\users\.m2 folder

    JSON-taglib files