A good clue: you're not using any tiles tags in your JSP. "items" in your JSP is a jsp variable, not a tiles attribute.
Try and add <tiles:importAttributes/> to import the tiles attribute into the page context. On 13-01-26 01:36 AM, Ken McWilliams wrote: > Finally here is a tile (head.jsp), where I am trying to output the value of > "items", actually I gave up and just wanted to see if iteration would work > (there should be 5 items in the list), so just wanted to print five strings > but the loops are not entered. > > <%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%> > <%@taglib prefix="s" uri="/struts-tags"%> > <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> > <s:iterator value="items"> > iterator, > </s:iterator> > <c:forEach var="item" items="${items}"> > ${item} > </c:forEach> > <script src="<s:url > value='/script/jquery/1.8.1/jquery.min.js'/>"></script> > <script src="<s:url value='/script/jquery.sort.js'/>"></script> > <title>A Title</title> > </head> > > Any ideas? >
