tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Theobald <...@openobjects.com>
Subject Re: [Tiles 2 Standalone] Where are my JSTL/EL variables?
Date Tue, 22 Jan 2008 16:50:22 GMT

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.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<%@ 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" %>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title><tiles:getAsString name="pageTitle" ignore="true"/></title>

<div id="pagewrap">
	<div id="header">
		<tiles:insertAttribute name="header" />
	<div id="main">
		<tiles:insertAttribute name="main" />

<%@ 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" />

<c:set var="test" value="Wibble"/>
<p>Test = <c:out value="${test}"/></p>
<dl id="requestvars" style="display:none;">
	<c:forEach var='parameter' items='${paramValues}'>
	    <c:when test="${empty parameter.value[0]}">
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.

View raw message