<%-- IBM Confidential OCO Source Material --%> <%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2004, 2005 --%> <%-- The source code for this program is not published or otherwise divested --%> <%-- of its trade secrets, irrespective of what has been deposited with the --%> <%-- U.S. Copyright Office. --%> <%@ page language="java"%> <%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%@ page import="java.util.*"%> <%@ page import="com.ibm.ws.*" %> <%@ page import="com.ibm.wsspi.*" %> <%@ page import="com.ibm.ws.console.healthconfig.*"%> <%@ page import="com.ibm.ws.console.healthconfig.form.HealthClassDetailForm"%> <%@ page import="com.ibm.ws.xd.config.healthconfig.HealthConfigConstants" %> <%@ page import="com.ibm.websphere.management.metadata.*"%> <%@ page import="com.ibm.ws.sm.workspace.RepositoryContext"%> <%@ page import="com.ibm.ws.console.core.Constants"%> <%@ page import="org.apache.struts.util.MessageResources"%> <% HealthClassDetailForm testForm = null; if (callerType.equals("detail")) { testForm = (HealthClassDetailForm)session.getAttribute("HealthClassDetailForm"); } else { testForm = (HealthClassDetailForm)session.getAttribute("CreateHealthClassConditionPropertiesForm"); } %>
">
<bean:message key=" BORDER="0" ALIGN="texttop"> <bean:message key=" BORDER="0" ALIGN="texttop">
<% //System.out.println("Trying to get the form data for the action plan"); ArrayList column0 = testForm.getActionPlanSteps(); //System.out.println("Trying to get the form data for the action plan A"); ArrayList column1 = testForm.getActionPlanNames(); //System.out.println("Trying to get the form data for the action plan B"); ArrayList column2 = testForm.getActionPlanTargetServers(); //System.out.println("Trying to get the form data for the action plan C"); ArrayList column3 = testForm.getActionPlanTargetNodes(); String actionName = null; for (int i=0; i < column0.size(); i++) { String moduleMemberId = "moduleMember" + i; %> <% actionName = (String) column1.get(i); if (actionName.equals("HEALTH_ACTION_RESTART")) { %> <% } else if (actionName.equals("HEALTH_ACTION_THREADDUMP")) { %> <% } else if (actionName.equals("HEALTH_ACTION_HEAPDUMP")) { %> <% } else if (actionName.equals("HEALTH_ACTION_MAINTMODE")) { %> <% } else if (actionName.equals("HEALTH_ACTION_MAINTBREAKMODE")) { %> <% } else if (actionName.equals("HEALTH_ACTION_NORMMODE")) { %> <% } else if (actionName.equals("HEALTH_ACTION_CUSTOM")) { %> <% } else if (actionName.equals("HEALTH_ACTION_SENDSNMPTRAP")) { %> <% } else { String serverStr = (String)column2.get(i); %> <% if (serverStr.equalsIgnoreCase(HealthConfigConstants.SICK_SERVER)) { %> <% } else if (serverStr.equalsIgnoreCase(HealthConfigConstants.NODE_AGENT_OF_SICK_SERVER)) { %> <% } else { %> <% } %> <% } String nodeVal = (String)column3.get(i); if (nodeVal == null || nodeVal.equals("")) { %> <%} else { %> <%}%> <% } // Column size is null ServletContext servletContext = (ServletContext) pageContext.getServletContext(); MessageResources messages = (MessageResources) servletContext.getAttribute(org.apache.struts.Globals.MESSAGES_KEY); if (column0.size() == 0) { String nonefound = messages.getMessage(request.getLocale(),"Persistence.none"); //out.println("
<%=column0.get(i)%> <%=actionName%><%=serverStr%><%=column3.get(i)%>
"); out.println(""); } %>
"+nonefound+"