<%
columnField = (String)cellItem.getColumnField();
%>
<%
if (cellItem.getIcon()!=null && cellItem.getIcon().length() > 0)
{
%>
<%
}
Boolean isLink = new Boolean(true);
%>
<%
isLink = tempIsLink;
%>
<%
if (cellItem.getLink().length() > 0 && isLink.booleanValue() == true)
{
String hRef = cellItem.getLink() + "&refId="+URLEncoder.encode(refId,encoding) + "&contextId=" + URLEncoder.encode(contextId_detail,encoding) + "&resourceUri=" + URLEncoder.encode(resourceUri,encoding) + "&perspective=" + URLEncoder.encode(perspective,encoding);
%>
<% }
if (columnField.equalsIgnoreCase("status")) {
String statusservlet = "/ibm/console/status";
if(cellItem.getStatusServlet()!=null)
statusservlet = cellItem.getStatusServlet();
if ( statusType.equals("unknown") ) {%>
" TITLE="">
<%
} else {
%>
<% String queryString = "";
Iterator cols = statusCols.iterator();
while (cols.hasNext()) {
String col = (String) cols.next();%>
<%
queryString += "&" + col + "=" + URLEncoder.encode((String)colvar , encoding);
}
String encodedStatusLink = statusservlet + "?text=true&type=" + statusType + queryString;
String imageSrcLink = statusservlet + "?type=" + statusType + queryString;
%>
" TITLE="">
<% } %>
<% } else if(columnField.equalsIgnoreCase("state")) {
String iconPath = "";%>
<% if (state.equals("ops.started")) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_STARTED;
} else if (state.equals("ops.starting")) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_PARTIALSTART;
} else if (state.equals("ops.stopping")) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_STOPPING;
} else if (state.equals("ops.stopped")) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_STOPPED;
} else if (state.equals("ops.partialstart")) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_PARTIALSTART;
} else {
// ops.unknown
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STATUS_LEVEL_UNKNOWN;
}
%>
<% } else if(columnField.equalsIgnoreCase("stability")) {
String iconPath = "";%>
<% if (stability.equals(com.ibm.ws.console.xdoperations.util.Constants.STABILITY_STABLE)) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STABILITY_LEVEL_STABLE;
} else if (stability.equals(com.ibm.ws.console.xdoperations.util.Constants.STABILITY_QUESTIONABLE)) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STABILITY_LEVEL_QUESTIONABLE;
} else if (stability.equals(com.ibm.ws.console.xdoperations.util.Constants.STABILITY_UNSTABLE)) {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STABILITY_LEVEL_UNSTABLE;
} else {
iconPath = com.ibm.ws.console.xdcore.util.XDCoreConstants.STABILITY_LEVEL_UNKOWN;
}
%>
<% } else if(columnField.equalsIgnoreCase("contextId")){ %>
<% String token = null;
String theCell = null;
String theNode = null;
String theCluster = null;
String theServer = null;
String scope_display = null;
StringTokenizer st = new StringTokenizer(contextId_detail,":");
while(st.hasMoreElements()){
token = st.nextToken();
if(token.equals("cells"))
theCell = st.nextToken();
else
if(token.equals("nodes"))
theNode = st.nextToken();
else
if(token.equals("clusters"))
theCluster = st.nextToken();
else
if(token.equals("servers"))
theServer = st.nextToken();
}
if(theServer!=null)
scope_display = nodeLabel+"="+theNode+","+serverLabel+"="+theServer;
else if(theNode!=null)
scope_display= nodeLabel+"="+theNode;
else if(theCluster!=null)
scope_display = clusterLabel+"="+theCluster;
else
scope_display = cellLabel+"="+theCell;%>
<%=scope_display%>
<% } else if (cellItem.getTranslate()) { %>
<% } else {
if (htmlFilter.equalsIgnoreCase("false")) { %>
<% } else { %>
<% }
} %>
<% if (cellItem.getLink().length() > 0 && isLink.booleanValue() == true) { %>
<% }else{ %>
<% if (!columnField.equalsIgnoreCase("status") && (!columnField.equals("stability"))) { %>
<% } %>
<% } %>
|