2016-11-09 3 views
0

Quelqu'un sait si le taglib JSON fonctionne toujours? Je l'ai inclus dans mon jsp et il me donne une erreur. Cette erreur dit ceci:JSON taglib ne fonctionne pas?

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. 

J'ai inclure le fichier JSON-taglib-0.4.1.jar dans mon WEB-INF/lib respository et comprennent aussi sur le haut de ma page jsp:

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

Mais l'erreur apparaît, et je ne sais pas pourquoi. Tout le monde sait comment je peux ajouter JSON taglib pour ma page jsp?

+0

Avez-vous ajouté JSON-taglib.jar dans le répertoire WEB-INF/lib de votre application web? –

+0

oui j'ai ajouté json library au dossier – dbz

Répondre

0

veulent aider, mais le niveau ma réputation ne fonctionne toujours me permet pas de faire :-), parce écrire en réponse

Je pense que nous devons envoyer votre liste web.xml

Par exemple

<?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"> 
 
\t \t 
 
<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>

et vérifier projet de construction, par exemple IDEA

enter image description here