<%-- iterates over ArrayList to display the values present in the List. An inner loop of columnList is used to display the values of each item in the column of the table. --%>
<%
WorkClassType wcType = WorkClassType.get(WorkClassType.HTTPWORKCLASS);
if (requestType.equals(WorkClassConstants.IIOP)) {
wcType = WorkClassType.get(WorkClassType.IIOPWORKCLASS);
} else if (requestType.equals(WorkClassConstants.SOAP)) {
wcType = WorkClassType.get(WorkClassType.SOAPWORKCLASS);
} else if (requestType.equals(WorkClassConstants.JMS)) {
wcType = WorkClassType.get(WorkClassType.JMSWORKCLASS);
}
if (wcType.equals(type)) {
%>
<% int collectionCount = 0; %>
<% if (collectionCount++ < 1) { %>
<%-- forms link for the column if it is required --%>
<%
String expandState = (String)session.getAttribute("com_ibm_ws_"+expandID+name+chkcounter);
String expandGraphic = request.getContextPath()+"/com.ibm.ws.console.workclass/images/plus_sign.gif";
if (expandState == null)
expandState = "display:none";
else if (expandState.equals("display:block"))
expandGraphic = request.getContextPath()+"/com.ibm.ws.console.workclass/images/minus_sign.gif";
if (wcscope != WorkClassConstants.WCSCOPE_ODR) {%>
<% } else { %>
<% } %>
<%=name%>
<%
WorkClassDetailForm wcdf = (WorkClassDetailForm)collectionItem;
//request.getSession().setAttribute(name + "WorkClassDetailForm", wcdf);
request.setAttribute("wcName", name);
request.setAttribute("requestType", requestType);
%>
<%
String refId = name;
String rowRefId = "refId" +refId;
String rowRefId_Value = "";
if (!wcdf.getIsValid()) {
rowRefId_Value = refId;
}
%>
<%
String selectionChanged = "selectActionClicked('" + refId + "')";
if (wcscope == WorkClassConstants.WCSCOPE_ODR) {
WorkClassModuleDetailForm wcmdf = wcdf.getWorkClassModuleDetailForm(0); // Get WorkClassModule for odr
if (wcmdf == null) {
// shouldn't get here but just in case.
wcmdf = new WorkClassModuleDetailForm();
wcmdf.setModuleName(wccf.getODRName());
// Set a default URI pattern??
// wcmdf.setMatchExpression("/*");
wcdf.addWorkClassModuleDetailForm(wcmdf);
}
// Add Virtual Host selection for ODR WorkClass panels
String uriNames = wcmdf.getMatchExpressionToShow();
pageContext.setAttribute("uriNames", uriNames);
//String hostDropDownChanged = "initVars(this);hostChange('" + name + "', '" + requestType + "')";
String uriNamesId = "uriNames_" + rowRefId_Value;
%>
<% } %>
<% chkcounter = chkcounter + 1; %>
<%-- creates buttons if this is given true in the configuration file --%>
" class="buttons"
id="navigation">
<%-- MessageResources of struts is used here. Action.MESSAGES_KEY will have MessageResources type stored in the session. --%>
<%-- This instance is used to get a text message for the specified key, for the given Locale --%>
<%-- displays none if no items are present in the List --%>
<%
ServletContext servletContext = (ServletContext)pageContext.getServletContext();
MessageResources messages =
(MessageResources)servletContext.getAttribute(Action.MESSAGES_KEY);
String nonefound = messages.getMessage(request.getLocale(),"Persistence.none");
if (chkcounter == 0) {
out.println("