<%-- 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"%> <%@ page import="org.apache.struts.util.MessageResources"%> <%@ page import="com.ibm.ws.xd.config.operationalpolicy.OperationalPolicyConstants"%> <%@ page import="org.apache.struts.action.*"%> <%@ 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" %> <% MessageResources messages = (MessageResources)application.getAttribute(Action.MESSAGES_KEY); java.util.Locale locale = request.getLocale(); description = description.replaceAll("<","<"); description = description.replaceAll(">",">"); %>
<% if (selectedTCsText.length() == 0) { selectedTCsText = OperationalPolicyConstants.DEFAULT_TC_NAME+name; } else { selectedTCsText = OperationalPolicyConstants.DEFAULT_TC_NAME+name+":"+selectedTCsText; } if (goalType.equalsIgnoreCase("GOAL_TYPE_DISCRETIONARY")) { if ((description.length() == 0) && (selectedTCsText.length() == 0)) {%> <%} else if ((description.length() == 0) && (selectedTCsText.length() > 0)) {%> <%} else if ((description.length() > 0) && (selectedTCsText.length() == 0)) {%> <%} else {%> <%} } else if (goalType.equalsIgnoreCase("GOAL_TYPE_AVG_RESPONSE_TIME")) { String transImportance = messages.getMessage(locale,importance); String transTime = messages.getMessage(locale,goalIntervalString); if (description.length() == 0) { %> <%} else { %> <%} if (selectedTCsText.length() > 0) { %> <% } // if (Integer.parseInt(goalDeltaValue) > 0) { if (violationEnabled.booleanValue()) { String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit); String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit); %> <% } %> <% } else if (goalType.equalsIgnoreCase("GOAL_TYPE_QUEUETIME")) { String transImportance = messages.getMessage(locale,importance); String transTime = messages.getMessage(locale,goalIntervalString); if (description.length() == 0) { %> <%} else { %> <%} if (selectedTCsText.length() > 0) { %> <% } // if (Integer.parseInt(goalDeltaValue) > 0) { if (violationEnabled.booleanValue()) { String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit); String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit); %> <% } %> <% } else if (goalType.equalsIgnoreCase("GOAL_TYPE_COMPLETIONTIME")) { String transImportance = messages.getMessage(locale,importance); String transTime = messages.getMessage(locale,goalIntervalString); if (description.length() == 0) { %> <%} else { %> <%} if (selectedTCsText.length() > 0) { %> <% } // if (Integer.parseInt(goalDeltaValue) > 0) { if (violationEnabled.booleanValue()) { String gdvUnitString = messages.getMessage(locale, goalDeltaValueUnit); String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit); %> <% } %> <% } else if (goalType.equalsIgnoreCase("GOAL_TYPE_PCT_RESPONSE_TIME")) { String transImportance = messages.getMessage(locale,importance); String transTime = messages.getMessage(locale,goalIntervalString); if ((description.length() == 0) && (selectedTCsText.length() == 0)) { %> <%} else if ((description.length() > 0) && (selectedTCsText.length() == 0)) { %> <%} else if ((description.length() == 0) && (selectedTCsText.length() > 0)) { %> <%} else { %> <%}%> <% // if (Integer.parseInt(goalDeltaPercent) > 0) { if (violationEnabled.booleanValue()) { String tpvUnitString = messages.getMessage(locale, timePeriodValueUnit); %> <% } %> <%}%>