<%-- 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="org.apache.struts.util.MessageResources,org.apache.struts.action.Action"%> <%@ page errorPage="error.jsp" %> <%@ page import="com.ibm.ws.console.core.selector.CollectionItemSelector"%> <%@ page import="com.ibm.ws.console.core.selector.ConfigurationElementSelector"%> <%@ page import="com.ibm.ws.console.core.selector.PreferenceSelector"%> <%@ page import="com.ibm.wsspi.*"%> <%@ 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" %> <%@ page import="java.util.*" %> <%@ page import="java.net.*" %> <%@ page import="com.ibm.ws.console.core.ConfigFileHelper" %> <% MessageResources messages = (MessageResources)application.getAttribute(Action.MESSAGES_KEY); java.util.Locale locale = request.getLocale(); int chkcounter = 0; try { %> <% String contextType=(String)request.getAttribute("contextType"); String cellname = null; String nodename = null; String token = null; java.util.Properties props= null; java.util.ArrayList collectionList_ext = new java.util.ArrayList(); for(int i=0;i0) || (extensions_preferences!=null && extensions_preferences.length>0)){ if(contextId!=null && contextId!="nocontext"){ props = ConfigFileHelper.getNodeMetadataProperties((String)contextId); //213515 } props = ConfigFileHelper.getAdditionalAdaptiveProperties(request, props, formName); } if(extensions!=null && extensions.length>0){ collectionList_ext = CollectionItemSelector.getCollectionItems(extensions,collectionList_ext,props); } pageContext.setAttribute("collectionList_ext",collectionList_ext); %> <% if(extensions_preferences!=null && extensions_preferences.length>0){ collectionPreferenceList_ext = PreferenceSelector.getPreferences(extensions_preferences,collectionPreferenceList_ext,props); } %> <%-- NOTES: The sorting icons are specified in defaultIconList. The icons are assumed to be located in the images folder. Checkboxes are NOT displayed for all objects whose refIds start with "builtin_" --%> <%@ include file="/secure/layouts/filterSetup.jspf" %> <%-- Preferences at the top --%> <% session.removeAttribute("preferences"); %> <% for (Iterator i = collectionPreferenceList.iterator(); i.hasNext();) { preferences.add(i.next()); }%> <%@ include file="/secure/layouts/tableControlsLayout.jspf" %> <% if (showCheckBoxes.equals ("true")) { %> <% } %> <% sortable = (String)cellItem.getIsSortable(); columnField = (String)cellItem.getColumnField(); columnWidth = "25%"; %> <%@ include file="/secure/layouts/filterControlsLayout.jspf" %> <% System.out.println("dsJndiName= " + dsJndiName); %> <% if (showCheckBoxes.equals("true")) { if ( ConfigFileHelper.isDeleteable(refId) == true) { String delId = (String)resourceUri + "#" + (String) refId ; %> <% } else { %> <% } } %> <% columnField = (String)cellItem.getColumnField(); %> <% chkcounter = chkcounter + 1; %>
<% if (sortIconLocation.equalsIgnoreCase ("right")) { %> <% } if (sortable.equals ("false")) { %> <% } if (sortable.equals ("true")) { if (columnField.equals (sortedColumn)) { String nextOrder; if (order.equalsIgnoreCase ("ASC")) { nextOrder = "DSC"; } else { nextOrder = "ASC"; } %> <% if (order.equalsIgnoreCase ("ASC")) { %> <bean:message key="> <% } else if (order.equalsIgnoreCase ("DSC")) { %> <bean:message key="> <% } %> <% } else { %> <bean:message key="> <% } if (sortIconLocation.equalsIgnoreCase ("left")) { %> <% } if (sortable.equals ("false")) { %> <% } } %> <% //add refresh.gif after status column to refresh page if (columnField.equals("status")) { %> <bean:message key=" align="texttop" border="0"/> <% } if (!filterDisplay.equals("none")) { if (columnField.equals(searchFilter)) { %>
: <%=searchPattern%> <% } } %>
<% if (cellItem.getIcon().length() > 0) { %>   <% } if (columnField.equalsIgnoreCase("name")) { //String hRef = hrefAction + "&refId="+refId + "&contextId=" + contextId + "&resourceUri=" + URLEncoder.encode(resourceUri,"UTF-8") + "&perspective=" + URLEncoder.encode(perspective,"UTF-8"); %> <% } if(columnField.equalsIgnoreCase("dsJndiName")) { %> <% Iterator i_dsJndiList = dsJndiList.iterator(); %> <% while (i_dsJndiList.hasNext()) { String jndiName = (String) i_dsJndiList.next(); System.out.println("jndiName= " + jndiName); //if(jndiName.equals(dsJndiName)){ %> <%=jndiName%> <% //continue; } %> <% } // end while %> <% }else if (cellItem.getTranslate()) { %> <%} else { %>   <% } %> <% if (cellItem.getLink().length() > 0) { %> <%}%>
<% } catch (Exception e) {System.out.println("error found : " + e.toString());e.printStackTrace();} %> <% ServletContext servletContext = (ServletContext)pageContext.getServletContext(); //MessageResources messages = (MessageResources)servletContext.getAttribute(Action.MESSAGES_KEY); String nonefound = messages.getMessage(request.getLocale(),"Persistence.none"); if (chkcounter == 0) { out.println("
"+nonefound+"
"); } %>