<%-- 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"%> <%@ 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 language="java" import="com.ibm.websphere.management.metadata.*"%> <%@ page language="java" import="com.ibm.ws.sm.workspace.RepositoryContext"%> <%@ page language="java" import="com.ibm.ws.console.core.Constants"%> <%@ page language="java" import="com.ibm.ws.console.xdcore.form.RuleDetailForm"%> <% RuleDetailForm detailForm = (RuleDetailForm)request.getSession().getAttribute(actionForm+"Rule"+refId); if (detailForm != null) { pageContext.setAttribute("detailForm",detailForm); %> <% } %> <% String[] actionList = {"permit", "permit sticky", "redirect", "reject"}; String displayField = ""; String labelkey = "rule.action.matchrule."+template; String descriptionkey = labelkey+".desc"; if (actionItem0.startsWith("default")) { //Since this is the default action we need to tweak the label. labelkey = "default."+labelkey; } %>
<% if (template.equals("service")) { %> <% } else if (template.equals("service.bizgrid")) { %> <% } else if (template.equals("http.rules.routing")) { %> <% } else if (template.equals("routing")) { String selectionChanged = "initVars(this);" +"showSection(" + "this.value" +",'" + refId + "')"; %> <% String value = (String) dropDownItem; value=value.trim(); if (!value.equals("")) { %> <%=value%> <% } else { %> <% } %>
<% String docId = actionList[0] +refId; if (ruleActionContext.equals("odr.routing")) { if ( (actionType == null) || (actionType.equals("")) ) { // The default selected type will be permit so display this field too. displayField = "display:block"; //} else if ( actionType.equalsIgnoreCase(permitLabel) || actionType.equalsIgnoreCase(permitStickyLabel) ) { // displayField = "display:block"; } else { displayField = "display:none"; } } %> <% //rule.action.matchrule.appedition.routing OR rule.action.matchrule.gsc.odr.routing //Should be select edition or select gsc labelkey = "rule.action.matchrule."+ruleActionContext; descriptionkey = labelkey+".desc"; %>
<% String value = (String) dropDownItem; value=value.trim(); if (!value.equals("")) { %> <%=value%> <% } else { %> <% } %>
<% // redirect to URL docId = actionList[2] +refId; //if ( (actionType != null) && (actionType.equalsIgnoreCase(redirectLabel)) ) { // displayField = "display:block"; //} else { // displayField = "display:none"; //} %>
<% //reject with return code docId = actionList[3] +refId; //if ( (actionType != null) && (actionType.equalsIgnoreCase(redirectLabel)) ) { // displayField = "display:block"; //} else { // displayField = "display:none"; //} %>
<% } //END ruleActionContext.equals("odr.routing"))%>