Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\euscomponentssearchproperties.jsp
<%@ 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.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.EUSComponentsDataSourceConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponents"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponentType"%> <%@ page import="java.util.ResourceBundle"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <%@ 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"%> <uix:tableLayout width="50%" cellPadding="1" cellSpacing="5"> <% int iComponentType=3; if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) iComponentType=((EUSComponentType)request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE)).getType(); String onChangeURL=""; if(iComponentType==1) onChangeURL=request.getContextPath()+EUSConstants.EUS_URL_TO_USERS_GROUPS_COMPONENTS_MAIN_PAGE+"2"; else if(iComponentType==2) onChangeURL=request.getContextPath()+EUSConstants.EUS_URL_TO_USERS_GROUPS_COMPONENTS_MAIN_PAGE+"1"; String sSearchURL=request.getContextPath()+EUSConstants.EUS_URL_TO_COMPONENTS_MAIN_PAGE+iComponentType; ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); if(request.getAttribute(EUSConstants.EUS_COMPONENTS_SEARCH_PROPERTIES) != null) { Map additionalSearchProperties=(Map)request.getAttribute(EUSConstants.EUS_COMPONENTS_SEARCH_PROPERTIES); Map additionalSearchPropertiesValue = new HashMap(); if(request.getAttribute(EUSConstants.EUS_COMPONENTS_SEARCH_PROPERTIES_WITH_VALUES) != null) additionalSearchPropertiesValue=(Map)request.getAttribute(EUSConstants.EUS_COMPONENTS_SEARCH_PROPERTIES_WITH_VALUES); 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) { %> <uix:rowLayout> <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>" /> </uix:cellFormat> <uix:cellFormat hAlign="left"> <% String sSubmitOnChangeJS="submitMainForm('"+onChangeURL+"')";%> <uix:messageChoice id="<%=sKey%>" name="<%=sKey%>" onChange="<%=sSubmitOnChangeJS%>"> <uix:contents> <% List databases=(List)obj; for(int i=0;i<databases.size();i++) { String sDatabase=(String)databases.get(i); String sSelected="false"; if(i==0) sSelected="true"; %> <uix:option text="<%=sDatabase%>" value="<%=sDatabase%>" selected="<%=sSelected%>" shortDesc="<%=sDatabase%>" /> <% } %> </uix:contents> </uix:messageChoice> </uix:cellFormat> </uix:rowLayout> <% } else if(obj==null || obj instanceof java.lang.String) { String sTextValue=(obj==null ? "" : String.valueOf(obj)); %> <uix:rowLayout > <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(sKey)%>" shortDesc="<%=eusBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>" /> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:textInput id="<%=sKey%>" name="<%=sKey%>" text="<%=objValue%>" shortDesc="<%=eusBundle.getString(sKey)%>" required="true"/> </uix:cellFormat> </uix:rowLayout> <% } } %> <uix:rowLayout > <uix:cellFormat> <uix:spacer /> </uix:cellFormat> <uix:cellFormat > <% String sSubmitSearchJS="submitMainForm('"+sSearchURL+"')";%> <uix:button shortDesc="<%=eusBundle.getString(\"EUS_SEARCH_TEXT\")%>" onClick="<%=sSubmitSearchJS%>" text="<%=eusBundle.getString(\"EUS_SEARCH_TEXT\")%>" /> </uix:cellFormat> </uix:rowLayout> <% } %> </uix:tableLayout>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de