<%-- 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.console.workclass.util.WorkClassConfigUtils"%> <%@ page import="com.ibm.ws.console.core.item.*" %> <%@ page import="com.ibm.ws.sm.workspace.WorkSpace"%> <%@ page import="com.ibm.ws.xd.config.workclass.util.WorkClassConstants"%> <%@ page import="org.apache.struts.util.MessageResources,org.apache.struts.action.Action"%> <%@ page import="com.ibm.ws.*"%> <%@ page import="com.ibm.wsspi.*"%> <%@ page import="com.ibm.ws.console.core.selector.*"%> <%@ 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" %> <% request.setAttribute("contextType",contextType);%> <% // 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 = null; String DETAILFORM = "DetailForm"; String COLLECTIONFORM = "CollectionForm"; String FORM = "Form"; String objectType = ""; String helpPluginId = ""; String fieldLevelHelpAttribute = ""; fieldLevelHelpTopic = "CreateWorkClassStep1Form.detail."; String topicKey = fieldLevelHelpTopic; fieldLevelHelpTopic = topicKey + "membership"; if (helpTopic !=null && helpTopic.length()>0 && pluginId !=null && pluginId.length()>0) { fieldLevelHelpTopic = helpTopic; helpPluginId = pluginId; } else { if (formType != null && formType.length() > 0) { int index = formType.lastIndexOf ('.'); if (index > 0) { String fType = formType.substring (index+1); if (fType.endsWith (DETAILFORM)) { objectType = fType.substring (0, fType.length()-DETAILFORM.length()); fieldLevelHelpTopic = objectType + ".detail"; } else if (fType.endsWith (COLLECTIONFORM)) { objectType = fType.substring (0, fType.length()-COLLECTIONFORM.length()); fieldLevelHelpTopic = objectType + ".collection"; } else if (fType.endsWith (FORM)) { objectType = fType.substring (0, fType.length() - FORM.length()); fieldLevelHelpTopic = objectType; } else { fieldLevelHelpTopic = fType; } } else { fieldLevelHelpTopic = formType; } } else fieldLevelHelpTopic = ""; } %> <% ServletContext servletContext = (ServletContext)pageContext.getServletContext(); MessageResources messages = (MessageResources)servletContext.getAttribute(Action.MESSAGES_KEY); String pageTitle = messages.getMessage(request.getLocale(),titleKey); if (session.getAttribute("bcnames") != null) { String[] bcnamesT = (String[])session.getAttribute("bcnames"); pageTitle = bcnamesT[0]; String[] bclinksT = (String[])session.getAttribute("bclinks"); int oldlen = 0; for (int counter1=0; counter1 <%=pageTitle%> <% // .do of the action handler in definition was omitted for easier comparison. // Appending the .do now. String actionPath = actionHandler + ".do"; %> <% WorkClassCollectionForm wccf = (WorkClassCollectionForm)session.getAttribute("WorkClassCollectionForm"); WorkSpace wksp = (WorkSpace) session.getAttribute(com.ibm.ws.console.core.Constants.WORKSPACE_KEY); String wcName = (String)request.getAttribute("wcName"); WorkClassDetailForm testForm = WorkClassConfigUtils.getWorkClassDetailForm(wcName, wccf); String wcType = (String)session.getAttribute("requestType"); boolean isEJBModule = ((Boolean)session.getAttribute("isEJBModule")).booleanValue(); //String wcName = testForm.getName(); 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);removeEditMembershipClicked(selectedCurrentNodes, '" + wcName + "')"; String addButtonClicked = "initVars(this);addEditMembershipClicked(selectedAvailableNodes, '" + wcName + "')"; String addFilterButtonClicked = "initVars(this);addFilterEditMembershipClicked('" + wcName + "')"; String modDropDownChanged = "initVars(this);webModNameEditMembershipChange('" + wcName + "')"; String methodDropDownChanged = "initVars(this);methodNameEditMembershipChange('" + wcName + "')"; String okButtonClicked = "initVars(this);okEditMembershipClicked('" + wcName + "')"; String cancelButtonClicked = "initVars(this);cancelEditMembershipClicked('" + wcName + "')"; String jmsEJBDropDownChanged = "initVars(this);jmsEJBNameEditMembershipChange('" + wcName + "')"; String enableFilterClicked = "initVars(this);enableFilterClicked('" + wcName + "')"; boolean isMethodEnabled = testForm.getEnableFilter(); if (wcType.equals(WorkClassConstants.IIOP) || wcType.equals(WorkClassConstants.JMS)) addFilterButtonClicked = "initVars(this);addFilter2EditMembershipClicked('" + wcName + "')"; String message = ""; try { %> <%@ include file="/com.ibm.ws.console.workclass/helpPortlet.jspf" %> <% } catch (Exception e) { System.out.println("Caught Exception" + e.toString()); e.printStackTrace();} %>