I am aware that this question has been asked before but even after going through the answers for the past 5 hours I still haven't found what I'm looking for.
I am trying to read JSON via jsp using jstl. I have imported the json-taglib jar file in WEB-INF/lib, but I'm getting
No tag "parse" defined in tag library imported with prefix "json"] with root cause org.apache.jasper.JasperException: /index-test.jsp (line: 7, column: 0) No tag "parse" defined in tag library imported with prefix "json"
This is my code
<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="json" uri="http://www.atg.com/taglibs/json" %>
<c:import var="dataJson" url="http://localhost:10081/test.json"/>
<json:parse json="${dataJson}" var="parsedJSON" />
Fetch the name of the node at index 1 : ${parsedJSON.node[1]}
and this is the JSON object I'm reading from
{
"firstName": "Joe"
"lastName": "Bloggs"
}
The application works fine in angular but I want to migrate the implementation such that it reads json server-side
Please help