<%-- 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" import="com.ibm.websphere.management.fileservice.*,com.ibm.ws.console.core.form.*, com.ibm.ws.console.core.*" %> <%@ page import="java.net.*" %> <%@ page import="org.apache.struts.util.MessageResources,org.apache.struts.action.Action" %> <%@ 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" %> <% request.setAttribute("contextType", contextType); %> <% String[] bcnamesT = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" }; 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) { bcnamesT = (String[]) session.getAttribute("bcnames"); pageTitle = bcnamesT[0]; } String encoding = response.getCharacterEncoding(); if (encoding == null) { encoding = "UTF-8"; } String typeKey = (String) session.getAttribute("typeKey"); %>
<%=pageTitle%>
show/hide portlet View page help

<% String parentDir = (String) parentList.get(1); String link = "extendedBrowseRemoteNodes.do?parentName=" + URLEncoder.encode(ConfigFileHelper.urlEncode(parentDir), encoding); if (parentDir.equals("cellContext")) { link = "extendedBrowseRemoteNodes.do?nodeName="; } else if (parentDir.equals("nodeContext")) { parentDir = thisForm.getNode(); link = "extendedBrowseRemoteNodes.do?nodeName=" + URLEncoder.encode(ConfigFileHelper.urlEncode(parentDir), encoding); } %> <% RemoteFile[] remoteFiles = thisForm.getRemoteFiles(); for (int i = 0; i < remoteFiles.length; i++) { RemoteFile remoteFile = remoteFiles[i]; // System.out.println(remoteFile.dump()); String fileName = remoteFile.getName(); String filePath = remoteFile.getPath(); if (remoteFile.isRoot()) { fileName = remoteFile.getAbsolutePath(); } if (remoteFile.isDirectory()) { link = "extendedBrowseRemoteNodes.do?remoteFileName=" + URLEncoder.encode(ConfigFileHelper.urlEncode(filePath), encoding); %> <% } else { String foo = filePath + ":" + fileName; String fileType = remoteFile.getType(); %> <%-- Types of Ext for the Type of Applications. --%> <%--=foo %> <%=fileType --%> <% // Check for Valid Extension; Display only Supported Types //if (fileType.equals(RemoteFile.NORMAL_FILE)) { String thePath = remoteFile.getAbsolutePath().toLowerCase(); if (typeKey.equals("middlewareapps.type.wasce")) { if (thePath.endsWith(".car") || thePath.endsWith(".rar") || thePath.endsWith(".ear") || thePath.endsWith(".war") || thePath.endsWith(".jar")) { %> <% } } else { // Check for Valid Extension; Display only Supported Types if (thePath.endsWith(".zip") || thePath.endsWith(".tar") || thePath.endsWith(".tar.gz") || thePath.endsWith(".tgz") || thePath.endsWith(".jar")) { %> <% } } %> <% } } %>