<%-- 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 import="java.util.*" %> <%@ page import="com.ibm.ws.*" %> <%@ page import="com.ibm.wsspi.*" %> <%@ page import="com.ibm.ws.console.middlewareapps.*" %> <%@ page import="com.ibm.ws.console.middlewareapps.form.InstallMiddlewareAppForm" %> <%@ page import="org.apache.struts.action.Action" %> <%@ page import="org.apache.struts.util.MessageResources" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%@ 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" %> <% request.setAttribute("contextType", contextType); %> <% // Console for IIR: Needed for Federation. Boolean iscFed = (Boolean) request.getSession().getAttribute(WSCDefines.WSC_ISC_LAUNCHED_TASK); if (iscFed == null) { iscFed = new Boolean(false); } Boolean isPortletFed = (Boolean) request.getSession().getAttribute(WSCDefines.PORTLET_COMPATIBLE); if (isPortletFed == null) { isPortletFed = new Boolean(false); } %> <% String fieldLevelHelpTopic = null; String DETAILFORM = "DetailForm"; String COLLECTIONFORM = "CollectionForm"; String APPINSTALLFORM = "AppInstallForm"; String FORM = "Form"; String objectType = ""; String helpPluginId = ""; 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.equals(APPINSTALLFORM)) { objectType = actionForm.substring(0, actionForm.length() - FORM.length()); fieldLevelHelpTopic = "appmanagement." + objectType; request.setAttribute("fieldHelp", fieldLevelHelpTopic); helpPluginId = "com.ibm.ws.console.appmanagement"; } else if (fType.endsWith(FORM)) { objectType = fType.substring(0, fType.length() - FORM.length()); fieldLevelHelpTopic = objectType; } else { fieldLevelHelpTopic = fType; } } else { fieldLevelHelpTopic = formType; } } else { fieldLevelHelpTopic = ""; } } %> <%@ include file="/secure/layouts/browser_detection.jsp" %> <bean:message key="<%=titleKey%>" /> <% 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 < bclinksT.length; counter1++) { if (bclinksT[counter1].equals("")) { oldlen = counter1; break; } } String priorpage = request.getHeader("Referer"); if (priorpage == null) { priorpage = ""; } if (oldlen == 0) { oldlen = 1; } if (priorpage.indexOf("forwardName=") > 0) { if ((bclinksT[oldlen-1].indexOf("forwardName=") < 0) && (bclinksT[oldlen-1].indexOf("EditAction=true") < 0)) { bclinksT[oldlen-1] = priorpage; session.setAttribute("bclinks", bclinksT); } } } %> <% // WSC: Needed for Federation if (iscFed.booleanValue() == false && isPortletFed.booleanValue() == false) { %> <% } %> <%@ include file="/com.ibm.ws.console.middlewareapps/helpPortlet.jspf" %>
<% if (!fieldLevelHelpTopic.equals("") && !helpPluginId.equals("")) { %> <% } %>