有人知道JSON标记库是否还在工作吗?
我将它包含在我的jsp中,但它给了我一个错误。这个错误是这样的:
org.apache.jasper.JasperException: The absolute uri: http://www.atg.com/taglibs/json cannot be resolved in either web.xml or the jar files deployed with this application.
我已经将json-taglib-0.4.1.jar文件包含在WEB-INF/lib存储库中,并将其包含在jsp页面的顶部:
<%@taglib prefix="json" uri="http://www.atg.com/taglibs/json"%>
但是错误出现了,我不知道为什么。有人知道如何为我的jsp页面添加JSON taglib吗?
发布于 2016-11-30 15:38:48
想帮忙,但是平级了我的名声还是不让我做:-),因为写在回复里
我想我们必须发送你的web.xml列表
例如
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<display-name>mon</display-name>
<jsp-config>
<!-- JSTL Tag Library Local Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/jstl/c.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jstl/fmt.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jstl/fn.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jstl/sql.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/sql.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jstl/x.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/jstl/taglib34.tld</taglib-uri>
<taglib-location>/WEB-INF/jstl/taglib34.tld</taglib-location>
</taglib>
</jsp-config>
<welcome-file-list>
<welcome-file>main.jsp</welcome-file>
</welcome-file-list>
</web-app>
然后选中build project,例如IDEA
https://stackoverflow.com/questions/40502823
复制相似问题