%@page contentType="text/html"%>
<%@ page language="java" %>
<%@ page import="org.apache.log4j.*" %>
<%@ page import="javax.servlet.http.HttpServletRequest" %>
<%@ page import="java.security.Principal" %>
<%@ page import="java.util.*" %>
<%@ page import="org.jaffa.components.menu.MainMenu" %>
<%@ page import="org.jaffa.components.menu.Group" %>
<%@ page import="org.jaffa.components.menu.Option" %>
<%@ page import="org.jaffa.util.URLHelper" %>
<%@ page import="javax.servlet.jsp.PageContext" %>
<%! int m_colNumber = 3; %>
<%! String m_frameTarget = "_parent"; %>
<% menu.determineComp(request, pageContext);
Map mp = menu.getComponents();
Set set = mp.entrySet();
Iterator i2 = set.iterator(); %>
Welcome to the Main Menu |
Please use the Menu on the Left to navigate through the Menu. |
|
|
<% while (i2.hasNext()) {
Map.Entry me = (Map.Entry)i2.next();
Group group = (Group) me.getKey();
String groupName = group.getGroupName();
String groupDesc = group.getDescription();
String groupTitle = group.getGroupTitle();%>
<%=groupTitle%> |
<%=groupDesc%> |
|
|
<% ArrayList al = new ArrayList();
al = (ArrayList) me.getValue();
Iterator it2 = al.iterator();
int col = 0;
if (it2.hasNext()) { %>
<% while (it2.hasNext()) {
if (col >= m_colNumber) {
col = 0; %>
<% }
col ++;
Option opt = (Option) it2.next();
String optIcon = opt.getIcon();
String optName = opt.getName();
String optLink = opt.getCompURL();
boolean optURL = opt.getURLTrue();
if (!(optURL))
optLink = "startComponent.do?component=" + optLink;
if (optIcon == null || optIcon.length() == 0) {%>
<%=optName%> |
<% } else { %>
<%=optName%> |
<%}%>
<% } %>
<% } %>
<%}%>
|