<%@ page import="java.util.Iterator"%> <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> <%-- Layout component Render a list of tiles in a vertical column @param : list List of names to insert This file contains 3 possible implementations. Use only one and comment the others. Don't forget to move the appropriate taglib declaration in the header. --%> <%-- Iterate over names. We don't use tag because it doesn't allow insert (in JSP1.1) --%> <% Iterator i=list.iterator(); while( i.hasNext() ) { String name= (String)i.next(); %>
<% } // end loop %> <%-- Iterate over names. Use jstl tag. Require the jstl taglib. --%> <%-- <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
--%> <%-- Iterate over names. Use struts tag. Work on jsp1.2 and greater web container. --%> <%-- <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
--%>