2015-08-28 1 views
0

Vous avez des problèmes avec l'utilisation de jstl dans la page atg jsp. Ajouté <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> et une bibliothèque à/WEB-INF/lib (standard.jar, jstl.jar). Mon web.xmlATG <dsp: setvalue> Problème avec les valeurs de réglage à l'aide de JSTL

<web-app xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
version="2.5"> 

Alors <dsp:getvalueof param="id" var="prodId"/> <c:set var="link" value="genericproduct.jsp?id=${prodId}"/> fonctionne très bien et montre par exemple "genericproduct.jsp? Id = prod180007", mais ${prodId} ne montre rien, au moment <c:out value="${prodId}"/> œuvres. Et <dsp:setvalue bean="CustomFormHandler.errorURL" value="genericproduct.jsp?id=${prodId}"/> ne fonctionne pas - "genericproduct.jsp? Id = $ {prodId}". Version de JSTL 1.0, l'application fonctionne sur jboss 4.0.5GA.J'ai hâte de répondre.Merci!

Répondre

0
<%@ page isELIgnored="false" %> 

<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>