%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" 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
--%>