%-- 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" import="java.util.*,java.lang.reflect.*,com.ibm.ws.console.workclass.form.WorkClassDetailForm,com.ibm.ws.console.workclass.util.*"%>
<%@ page import="com.ibm.ws.console.workclass.form.WorkClassCollectionForm"%>
<%@ page import="com.ibm.ws.xd.config.workclass.util.WorkClassConstants"%>
<%@ page import="com.ibm.ws.console.workclass.util.WorkClassConfigUtils"%>
<%@ page import="com.ibm.ws.sm.workspace.WorkSpace"%>
<%@ page import="java.beans.*"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/ibmcommon.tld" prefix="ibmcommon" %>
<% // defect 126608
String image = "";
String pluginId = "";
String pluginRoot = "";
if (descImage != "")
{
int index = descImage.indexOf ("pluginId=");
if (index >= 0)
{
pluginId = descImage.substring (index + 9);
if (index != 0)
descImage = descImage.substring (0, index);
else
descImage = "";
}
else
{
index = descImage.indexOf ("pluginContextRoot=");
if (index >= 0)
{
pluginRoot = descImage.substring (index + 18);
if (index != 0)
descImage = descImage.substring (0, index);
else
descImage = "";
}
}
}
%>
<%
String fieldLevelHelpTopic = "";
String fieldLevelHelpAttribute = "";
fieldLevelHelpTopic = "CreateWorkClassStep1Form.detail.";
String topicKey = fieldLevelHelpTopic;
fieldLevelHelpTopic = topicKey + "membership";
%>
<%
WorkClassCollectionForm wccf = (WorkClassCollectionForm) session.getAttribute("WorkClassCollectionForm");
WorkClassDetailForm testForm = (WorkClassDetailForm)session.getAttribute("CreateWorkClassStep2Form");
WorkSpace wksp = (WorkSpace)session.getAttribute(com.ibm.ws.console.core.Constants.WORKSPACE_KEY);
String wcType = (String)session.getAttribute("requestType");
boolean isEJBModule = ((Boolean)session.getAttribute("isEJBModule")).booleanValue();
int wcScope = wccf.getWCScope();
String edition = wccf.getEdition();
ArrayList selectedNodesBean = (ArrayList)testForm.getModMatches();
selectedNodesBean = (ArrayList)WorkClassConfigUtils.formatMatchesForDisplay(selectedNodesBean, wccf.getApplicationName(), wccf.getEdition(), wksp, testForm.getType(), wccf.getWCScope());
Collection appNames = testForm.getAppNamesToShow();
Collection modNames = testForm.getModNamesToShow();
Collection methodNames = testForm.getMethodNamesToShow();
Collection jmsEJBNames = testForm.getJMSEJBNamesToShow();
ArrayList matchesNames = (ArrayList)testForm.getMatchesToShow();
//To make the boxes stay at a specific minimum size, we are going to add one at the bottom to provide a minimum size
if (!selectedNodesBean.contains("-------------------------------------------"))
selectedNodesBean.add(selectedNodesBean.size(),"-------------------------------------------");
if (!matchesNames.contains("-------------------------------------------"))
matchesNames.add(matchesNames.size(),"-------------------------------------------");
String selectedApp = testForm.getSelectedApp();
String selectedMod = testForm.getSelectedMod();
String selectedMethod = testForm.getSelectedMethod();
String selectedJMSEJB = testForm.getSelectedJMSEJB();
String contextRoot = testForm.getContextRoot();
String refId = testForm.getName();
pageContext.setAttribute("availableNodesBean", matchesNames);
pageContext.setAttribute("selectedNodesBean", selectedNodesBean);
pageContext.setAttribute("appNamesBean", appNames);
pageContext.setAttribute("modNamesBean", modNames);
pageContext.setAttribute("methodNamesBean", methodNames);
pageContext.setAttribute("jmsEJBNamesBean", jmsEJBNames);
pageContext.setAttribute("contextRoot", contextRoot);
String availNodesSelectChange = "initVars(this); setSelectedNodes(selectedAvailableNodes, availNodes)";
String currNodesSelectChange = "initVars(this);setSelectedNodes(selectedCurrentNodes, currentNodes)";
String removeButtonClicked = "initVars(this);removeClicked(selectedCurrentNodes)";
String addButtonClicked = "initVars(this);addClicked(selectedAvailableNodes)";
String addFilterButtonClicked = "initVars(this);addFilterClicked()";
String modDropDownChanged = "initVars(this);webModNameChange()";
String methodDropDownChanged = "initVars(this);methodNameChange()";
String jmsEJBDropDownChanged = "initVars(this);jmsEJBNameChange()";
String enableFilterClicked = "initVars(this);enableFilterClicked()";
boolean isMethodEnabled = testForm.getEnableFilter();
if (wcType.equals(WorkClassConstants.IIOP) || wcType.equals(WorkClassConstants.JMS))
addFilterButtonClicked = "initVars(this);addFilter2Clicked()";
String message = "";
try {
%>
<% if (wcType.equals(WorkClassConstants.SOAP)) {%>
|
|
|
<% if (isEJBModule && wcType.equals(WorkClassConstants.JMS)) { %>
|
|
<% } %>
<% if (!wcType.equals(WorkClassConstants.HTTP)) { %>
<% message = WorkClassConfigUtils.getLabel("workclass.methodcall", wcType); %>
|
<% if (wcType.equals(WorkClassConstants.IIOP) || wcType.equals(WorkClassConstants.JMS)) { %>
<% message = WorkClassConfigUtils.getLabel("workclass.enablefilter", wcType); %>
<% }%>
|
<% } %>
<% message = WorkClassConfigUtils.getLabel("workclass.details.availableMatches", wcType); %>
|
|
|
|
|
|
<% if (!wcType.equals(WorkClassConstants.SOAP)) {
message = WorkClassConfigUtils.getLabel("customPatternLabel", wcType); %>
|
<% if (wcType.equals(WorkClassConstants.IIOP) || wcType.equals(WorkClassConstants.JMS)) {
message = WorkClassConfigUtils.getLabel("customPatternLabel2", wcType); %>
: |
|
<% }%>
|
|
<% }%>
|
<% }
catch (Exception e) { System.out.println("Caught Exception" + e.toString()); e.printStackTrace();} %>