|
<%
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"))
{
%>
|
<%
}
}
%>
|
<%
}
}
%>
|
|