faire fonctionner la jstl
Je voudrais utiliser jstl/core mais j'ai une NullPointerException.
Je l'ai donc installer comme décrit ici : http://www.ibm.com/developerworks/ja...-jsp05273.html
Citation:
Envoyé par IBM
1. Download jakarta-taglibs-standard-current.tar.gz from apache.org.
2. Expand the downloaded archive.
3. Copy jakarta-taglibs/standard-1.0.3/tld/c.tld to your WEB/INF/tlds directory.
4. Copy all the JAR files in jakarta-taglibs/standard-1.0.3/lib to your WEB-INF/lib directory.
5. Add the entry shown below to your WEB-INF/web.xml deployment descriptor.
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
6. Restart your Web container.
Dans ma JSP :
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
...
<c:out value="${CategorieLibelle}" />
donne l'erreur suivante :
Code:
1 2 3 4 5 6
| 07/06/15 18:50:43 Error: null
07/06/15 18:50:43 Error: null
07/06/15 18:50:43 Error: null
07/06/15 18:50:45 Error: loading Tld's into cachedConfigTable: null
07/06/15 18:50:45 Error: loading Tld's into cachedConfigTable: null
07/06/15 18:50:45 Error: loading Tld's into cachedConfigTable: null |
Dans l'affichage de la JSP il y a :
Code:
1 2 3 4 5 6 7 8
| OracleJSP:
Erreur de la page JSP :
--------------------------------------------------------------------------------
URI de la demande :/das/WEB-INF/jsp/layout/mainLayout.jsp
Exception :
java.lang.NullPointerException |