%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ page import="java.util.Iterator" %>
<%-- Push component attributes in page context --%>
|
<%-- Check if selected exist. --%>
<% pageContext.setAttribute( "selected", "" ); %>
<%-- Prepare the links list to be iterated --%>
<% Iterator i = links.iterator(); %>
<%-- iterate on items list --%>
<%-- Normally, we should write something like this :
But, Struts doesn't declare the TEI class for iterate, and
some web container deal badly with the declared variable.
So, we use what follow instead.
--%>
|
<%-- check if selected --%>
<% // Compute link value
String link = (String)i.next();
if(link.startsWith("/") )
link = request.getContextPath() + link;
%>
<%=item%>
<%=item%>
|
<%-- Following are some code example using this submenu
--%>