%-- IBM Confidential OCO Source Material --%>
<%-- 5724-J34 (C) COPYRIGHT International Business Machines Corp. 2006 --%>
<%-- 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 language="java" import="com.ibm.websphere.management.metadata.*,com.ibm.ws.sm.workspace.RepositoryContext,com.ibm.ws.console.core.Constants"%>
<%@ 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.*"%>
<%
String selectedAction = "selectedAction";
String rejectCode = "rejectCode";
String selectedSpecifyBy = "selectedSpecifyBy";
if (property.startsWith("default")) {
selectedAction = "default"+selectedAction;
rejectCode = "default"+rejectCode;
selectedSpecifyBy = "default"+selectedSpecifyBy;
}
String selectedActionId = selectedAction + refId;
String selectedSpecifyById = selectedSpecifyBy + refId;
String rejectCodeId = rejectCode + refId;
String selectedClusterName = "selectedClusterName" + refId;
String selectedCellName = "selectedCellName" + refId;
String selectedServerName = "selectedServerName" + refId;
String selectedNodeName = "selectedNodeName" + refId;
String selectedAppName = "selectedAppName" + refId;
String selectedAppEdition = "selectedAppEdition" + refId;
String selectedAppModule = "selectedAppModule" + refId;
String selectedRemove = "selectedRemove" + refId;
%>
<%
String none = "none.text";
String target = null;
String actionEdit = "block";
String cellEdit = "none";
String expressionEdit = "none";
String clusterEdit = "none";
String serverEdit = "none";
String moduleEdit= "none";
String rejectEdit = "none";
String addRemoveEdit = "none";
String specifyFilterClicked = "specifyByFilterClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String cellFilterClicked = "cellFilterClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String appEditionFilterClicked = "appEditionFilterClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String addTarget = "addClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String removeTarget = "removeClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String showActionMethod = "showActionDiv"+refId+"('"+rowindex+"', '"+refId+"')";
String showTargetClusterItemsMethod = "showTargetClusterItemsDiv"+refId+"('"+rowindex+"', '"+refId+"')";
String serverFilterClicked = "serverFilterClicked"+refId+"('"+rowindex+"', '"+refId+"')";
String moduleFilterClicked = "moduleFilterClicked"+refId+"('"+rowindex+"', '"+refId+"')";
//TODO: Make the following change when Pii permits
//String actKeyArr[] = {"routing.rules.permit","routing.rules.reject"};
//Change:
//routing.rules.permit=permit
//routing.rules.reject=reject
//To:
//routing.rules.permit=Permit routing to
//routing.rules.reject=Reject routing with return code
String actKeyArr[] = {"workclass.matchrule.routing.label.permit","workclass.matchrule.routing.label.reject"};
String specKeyArr[] = {"routing.rules.module","routing.rules.cluster","routing.rules.server","routing.rules.expression"};
String polKeyArr[] = {"routing.rules.policy.error","routing.rules.policy.failover","routing.rules.policy.weightedroundrobin"};
String charLines = "---------------------------------";
int actKeyArrIndex=0;
int specKeyArrIndex=0;
int polKeyIndex=0;
int defaultLevel=1;
//System.out.println("tempTarget:"+refId+": " + tempTarget);
if (!actionType.equals("permit")) {
actionEdit = "none";
rejectEdit = "block";
}
if(tempTarget.equals("expression")) {
//System.out.println("expressionLayout");
expressionEdit = "block";
addRemoveEdit = "none";
}
if(tempTarget.equals("cluster")){
//System.out.println("clusterLayout, not setting to block");
cellEdit = "block";
clusterEdit = "block";
addRemoveEdit = "block";
expressionEdit = "none";
}
if(tempTarget.equals("server")){
//System.out.println("serverLayout");
cellEdit = "block";
serverEdit = "block";
addRemoveEdit = "block";
expressionEdit = "none";
}
if(tempTarget.equals("module")){
//System.out.println("moduleLayout");
cellEdit = "block";
moduleEdit = "block";
addRemoveEdit = "block";
expressionEdit = "none";
}
%>
<% if (property.startsWith("default")) { //TODO: add this label to NLS file & make this more reusable.%>
<% } %>
">
<% String value = ((String)dropDownItem).trim();
String key = (String) actKeyArr[actKeyArrIndex];
actKeyArrIndex++;
%>
<% String selectedRoutingPolicy = "selectedRoutingPolicy";
if(refId.equals("") ){
selectedRoutingPolicy = "default" + selectedRoutingPolicy;
}
String selectedRoutingPolicyId = selectedRoutingPolicy + refId;
%>
">
<% String value = ((String)dropDownItem).trim();
String key = (String)polKeyArr[polKeyIndex];
polKeyIndex++;
%>
|