%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ page import="java.util.Iterator" %>
<%-- Menu Layout
This layout render a menu with links.
This implementation doesn't use any Struts tags. If you also use Struts, please check
menu.jsp implementation.
It takes as parameter the title, and a list of items. Each item is a bean with following properties :
value, href, icon, tooltip.
@param title Menu title
@param items list of items. Items are beans whith following properties :
--%>
<%-- Push tiles attributes in page context --%>
|
|
---|---|
<% if( item.getIcon()==null) { %>
<%=item.getValue()%>
<% } else { %>
<% // Add site url if link start with "/"
String icon = item.getIcon();
if(icon.startsWith("/") ) icon = request.getContextPath() + icon;
%>
|