Of course, the pages are below. I can get my JSTL to work fine in template.jsp but the JSTL in header.jspf just doesn't work (with or without the taglib declaration in each file). I'm obviously putting something in the wrong place but I'm not sure what.
Template.jsp ------------------ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title><tiles:getAsString name="pageTitle" ignore="true"/></title> </head> <body> <div id="pagewrap"> <div id="header"> <tiles:insertAttribute name="header" /> </div> <div id="main"> <tiles:insertAttribute name="main" /> </div> </div> </body> </html> index.jsp ----------------- <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> <tiles:insertTemplate template="templates/template.jsp"> <tiles:putAttribute name="pageTitle" value="Hello world!" /> <tiles:putAttribute name="header" type="template" value="../includes/header.jspf" /> <tiles:putAttribute name="main" type="template" value="../includes/main.jspf" /> </tiles:insertTemplate> header.jspf ----------------- <h1>HEADER</h1> <c:set var="test" value="Wibble"/> <p>Test = <c:out value="${test}"/></p> <h3>Params</h3> <dl id="requestvars" style="display:none;"> <c:forEach var='parameter' items='${paramValues}'> <dt>${parameter.key}</dt> <c:choose> <c:when test="${empty parameter.value[0]}"> <dd> </dd> </c:when> <c:otherwise> <dd>${parameter.value[0]}</dd> </c:otherwise> </c:choose> </c:forEach> </dl> -- View this message in context: http://www.nabble.com/-Tiles-2-Standalone--Where-are-my-JSTL-EL-variables--tp15021180p15023051.html Sent from the tiles users mailing list archive at Nabble.com.
