<%@ include file="/sdk/oemTop.jspf" %> <%@ include file="/oemNoscript.jspf" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.sysman.db.rsc.sec.EUSMsg"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSourceConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSource"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponent"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponentType"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentType"%> <%@ page import="java.util.ResourceBundle"%> <%@ page import="java.util.Map"%> <%@ page import="java.util.Set"%> <%@ page import="java.util.List"%> <%@ page import="java.util.HashMap"%> <%@ page import="java.util.Iterator"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <% EUSSubComponentType selectedSubComponentType=(EUSSubComponentType)request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); //EUSComponentType componentType = ((EUSComponent)request.getAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT)).getType(); EUSComponentType componentType = (EUSComponentType)request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); int iEUSComponentType=componentType.getType(); int iEUSSubCompType=selectedSubComponentType.getType(); ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); String sFinalUrl=request.getContextPath()+sFormDestinationURL+"&event="+EUSConstants.EUS_ADD_SUB_COMPONENT ; String dbVersion = (String)request.getAttribute("DBVERSION"); String sInstructionText=""; String sPageTitle=""; String sFormURL=""; String sSearchURL=request.getContextPath()+sFormDestinationURL+"&event="+EUSConstants.EUS_GET_ADDITIONAL_SUB_COMPONENTS; String sEvent=""; if(request.getAttribute("SUB_COMPONENT_EVENT") != null) { sEvent=(String)request.getAttribute("SUB_COMPONENT_EVENT"); sFinalUrl=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=add"; sSearchURL=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=fetchadditional"; } try { sPageTitle=eusBundle.getString("PAGE_TITLE_FOR_ADD_IN_SUBCOMP_"+iEUSSubCompType+"_IN_COMP_"+iEUSComponentType); sInstructionText=eusBundle.getString("INS_TEXT_FOR_ADD_IN_SUBCOMP_"+iEUSSubCompType+"_IN_COMP_"+iEUSComponentType); } catch(Exception e) { } String sCurrentJSP="/database/security/eus/eusadditionalsubcomponents"; String sJSFunction="submitMainForm('"+sFinalUrl+"')"; String sSearchJSFunction="submitCurrentForm('"+sSearchURL+"')"; %> <%@ include file="/oemTitle.jspf" %> " shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="cancel()"/> " shortDesc="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" onClick="<%=sJSFunction%>"/> <% if(request.getAttribute("ADDITIONAL_COMPONENTS_SEARCH_PROPERTIES") != null) { Map additionalSearchProperties=(Map)request.getAttribute("ADDITIONAL_COMPONENTS_SEARCH_PROPERTIES"); Map additionalSearchPropertiesValue=new HashMap(); if(request.getAttribute("ADDITIONAL_COMPONENTS_SEARCH_PROPERTIES_VALUE") != null) additionalSearchPropertiesValue=(Map)request.getAttribute("ADDITIONAL_COMPONENTS_SEARCH_PROPERTIES_VALUE"); Set keySet=additionalSearchProperties.keySet(); Iterator iterator=keySet.iterator(); while(iterator.hasNext()) { String sKey=(String)iterator.next(); Object obj=additionalSearchProperties.get(sKey); Object objValue=""; if(additionalSearchPropertiesValue != null && additionalSearchPropertiesValue.get(sKey) != null) objValue=additionalSearchPropertiesValue.get(sKey); if(obj instanceof java.util.List) { %> <% List databases=(List)obj; for(int i=0;i <% } %> <% } else if(obj instanceof java.lang.String && String.valueOf(obj).equals("PASSWORD")) { %> <% } else if(obj instanceof java.lang.String && String.valueOf(obj).equals("%")) { String valVal=""; if(objValue != null && String.valueOf(objValue).equals("")==false) valVal=String.valueOf(objValue); else valVal=String.valueOf(obj); %> <% } else if(obj==null) { %> <% } } %> " shortDesc="<%=eusBundle.getString(\"EUS_SEARCH_TEXT\")%>"/> <% } %> <% int iColCount = ((Integer)((Map)EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPONENT.get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPS_IN_COMP_STR+componentType.getType())).get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUB_COMP_STR+selectedSubComponentType.getType())).intValue(); if(selectedSubComponentType.getType() == 105){ iColCount = 2; } else { iColCount=1; } for(int i=0;i <% } %> " shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="cancel()"/> " shortDesc="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" onClick="<%=sJSFunction%>"/>