Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eusconfigurecomponent.jsp
<%@ 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.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="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <% request.setAttribute("eusBundle", new BundleDataObject(NLSUtil.getBundle(EUSMsg.class.getName(), request))); String dbVersion = (String)request.getAttribute("DBVERSION"); %> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="streamsMsgs" class="oracle.sysman.db.rsc.streams.StreamsMsg"/> <uix:bundle name="olsMsgs" class="oracle.sysman.db.rsc.sec.OLSOIDMsg"/> <uix:bundle name="eusMsgs" class="oracle.sysman.db.rsc.sec.EUSMsg"/> <% int iSelectedTab = 0; String sEUSComponentProperty1=""; String sEUSComponentProperty2=""; EUSSubComponentType subComponentType=null; EUSSubComponentType selectedSubComponentType = null; ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); EUSSubComponentType fromRequestSubComponentType=null; String sFromRequestSubComponentType="0"; EUSComponentType fromRequestComponentType=null; String sFromRequestComponentType="0"; EUSComponent eusComponent=null; int iEUSComponentType=0; String sComponentName = ""; String sPageTitle=""; String sFormDestinationURL=""; String sCommitDestinationURL=""; String sTabDestinationURL=""; String sTabDestinationURLPrefix = ""; String sTabDestinationURLSuffix = ""; String sCurrentJSP=EUSConstants.EUS_CONFIGURE_COMPONENT_JSP; eusComponent=(EUSComponent)request.getAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT); if(request.getAttribute("SELECTED_TAB")!=null) { String sSelected=(String)request.getAttribute("SELECTED_TAB"); iSelectedTab=Integer.parseInt(sSelected); } /* Getting componentType from request */ if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) { fromRequestComponentType=(EUSComponentType) request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); sFromRequestComponentType=String.valueOf(fromRequestComponentType.getType()); iEUSComponentType=fromRequestComponentType.getType(); } /* Getting sub componentType from request */ if(request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE) != null) { fromRequestSubComponentType=(EUSSubComponentType) request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); sFromRequestSubComponentType=String.valueOf(fromRequestSubComponentType.getType()); } sPageTitle=eusBundle.getString("CONFIGURE_COMPONENT_"+sFromRequestComponentType+"_PAGE_TITLE"); if(request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT) != null && ((String)request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT)).equals(EUSConstants.EUS_NEW_STATUS)) { sPageTitle=eusBundle.getString("CREATE_COMPONENT_"+sFromRequestComponentType+"_PAGE_TITLE"); } if(request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE) != null) sComponentName=(String) request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE); if(request.getAttribute("EUS_COMPONENT_PROPERTY_1") != null) sEUSComponentProperty1=(String) request.getAttribute("EUS_COMPONENT_PROPERTY_1"); if(request.getAttribute("EUS_COMPONENT_PROPERTY_2") != null) sEUSComponentProperty2=(String) request.getAttribute("EUS_COMPONENT_PROPERTY_2"); sPageTitle = sPageTitle + sComponentName; sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); sCommitDestinationURL=request.getContextPath()+sFormDestinationURL+ "&event="+EUSConstants.EUS_COMMIT_CONFIGURE_COMPONENT; sTabDestinationURLPrefix = request.getContextPath()+ EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_SUFFIX + sFromRequestComponentType + EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_PREFIX ; sTabDestinationURLSuffix = "&event="+EUSConstants.EUS_CONFIGURE_COMPONENT_PAGE; EUSSubComponentType[] eusDistinctSubComponents=eusComponent.getDistinctSubComponentTypes(); int iSubComponetsCount=eusDistinctSubComponents.length; StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(sPageTitle); %> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <!-- Set the page title --> <uix:head title="<%=oemTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destinationBinding="EUS_BASE_URL_TO_COMPONENT@servletRequest"> <uix:formValue name="ToBeAddedSubComponentsIndexes"/> <uix:formValue name="<%=EUSConstants.SUB_COMPONENT_TYPE%>" value="<%=sFromRequestSubComponentType%>" /> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=sFromRequestComponentType%>" /> <uix:formValue name="EUS_COMPONENT_PROPERTY_1" value="<%=sEUSComponentProperty1%>" /> <uix:formValue name="EUS_COMPONENT_PROPERTY_2" value="<%=sEUSComponentProperty2%>" /> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" value="<%=sCurrentJSP%>"/> <uix:script text="function submitMainForm(sFinalUrl) { var iCount=0; var sAuthenticationTypes=''; var isAuthenticationElementsPresent=false; var isAuthenticationElementsChecked=false; for(var i=0;i<document.forms[0].elements.length;i++) { if(document.forms[0].elements[i].name=='AUTHENTICATION_TYPES_PWD' || document.forms[0].elements[i].name=='AUTHENTICATION_TYPES_KRB5' || document.forms[0].elements[i].name=='AUTHENTICATION_TYPES_SSL') { isAuthenticationElementsPresent = true; if(document.forms[0].elements[i].checked) { isAuthenticationElementsChecked=true; if(iCount==0) { sAuthenticationTypes=document.forms[0].elements[i].value; } else { sAuthenticationTypes=sAuthenticationTypes + ',' + document.forms[0].elements[i].value; } iCount++; document.forms[0].EUS_COMPONENT_PROPERTY_1.value=sAuthenticationTypes; } } if(document.forms[0].elements[i].name=='CUDBLINK_STATUS') { if(document.forms[0].elements[i].checked) { document.forms[0].EUS_COMPONENT_PROPERTY_2.value='TRUE'; } else { document.forms[0].EUS_COMPONENT_PROPERTY_2.value='FALSE'; } } } if(isAuthenticationElementsPresent && isAuthenticationElementsChecked==false) { document.forms[0].EUS_COMPONENT_PROPERTY_1.value='hello'; } document.forms[0].action=sFinalUrl; document.forms[0].submit(); }" /> <uix:pageLayout title="<%=sPageTitle%>"> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemGlobal.jspf" %> <%@ include file="/database/security/common/entdbseclogout.jspf" %> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_CANCEL_CONFIGURE_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" /> <% String sCommitJSFun="submitMainForm('"+sCommitDestinationURL+"')"; %> <uix:button onClick="<%=sCommitJSFun%>" text="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>" /> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> <% if(request.getAttribute("EUS_COMPONENT_EVENT") != null && ((String)request.getAttribute("EUS_COMPONENT_EVENT")).equals(EUSConstants.EUS_NEW_STATUS)) { %> <uix:rowLayout> <uix:cellFormat> <uix:messageTextInput id="EUS_COMPONENT_NAME" name="EUS_COMPONENT_NAME" text="<%=sComponentName%>" promptBinding="EUS_NAME_TEXT@eusMsgs" shortDescBinding="EUS_NAME_TEXT@eusMsgs" required="uiOnly" onKeyPress="if(_getKC(event)==13) return false; else return true;" /> </uix:cellFormat> </uix:rowLayout> <% } %> </uix:tableLayout> <% int iSubComponentType=100; if(iSubComponetsCount == 1) { subComponentType=eusDistinctSubComponents[0]; iSubComponentType=subComponentType.getType(); sTabDestinationURL=sTabDestinationURLPrefix+iSubComponentType+sTabDestinationURLSuffix; String sJSFunction="submitMainForm('"+sTabDestinationURL+"')"; selectedSubComponentType=eusDistinctSubComponents[0]; %> <uix:tableLayout width="100%"> <% int iSelectedSubComponent=selectedSubComponentType.getType(); String sComponentDisplayName=eusBundle.getString("SUB_COMPONENT_"+iSelectedSubComponent+"_TAB_NAME"); Map jspSuffixMaps=EUSConstants.JSP_FILE_SUFFIX_FOR_SUB_COMPONENT; String sKey=EUSConstants.JSP_FILE_SUFFIX_FOR_SUB_COMPONENT_TYPE_STR+iSelectedSubComponent; String sJspSuffix=(String)jspSuffixMaps.get(sKey); String sJspName = "eussubcomponents_"+sJspSuffix+".jsp"; request.setAttribute(EUSConstants.SUB_COMPONENT_TYPE,selectedSubComponentType); request.setAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT,eusComponent); request.setAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT,sFormDestinationURL); String sSubComponentInstructionTextKey="INS_TEXT_FOR_SUBCOMP_"+iSelectedSubComponent+"_IN_COMP_"+iEUSComponentType; String sSubComponentInstructionText=""; if(eusBundle.getString(sSubComponentInstructionTextKey) != null) sSubComponentInstructionText= eusBundle.getString(sSubComponentInstructionTextKey); %> <uix:rowLayout> <uix:formattedText styleUsage="instruction" text="<%=sSubComponentInstructionText%>" /> </uix:rowLayout> <uix:rowLayout> <uix:include node="<%=sJspName%>"> </uix:include> </uix:rowLayout> </uix:tableLayout> <% } else { %> <uix:subTabLayout> <uix:subTabs> <uix:subTabBar selectedIndex="<%=iSelectedTab%>"> <% String sComponentDisplayName=""; for(int i=0;i<eusDistinctSubComponents.length;i++) { subComponentType=eusDistinctSubComponents[i]; iSubComponentType=subComponentType.getType(); sComponentDisplayName=eusBundle.getString("SUB_COMPONENT_"+iSubComponentType+"_TAB_NAME"); sTabDestinationURL=sTabDestinationURLPrefix+iSubComponentType+sTabDestinationURLSuffix; String sJSFunction="submitMainForm('"+sTabDestinationURL+"')"; %> <uix:link onClick="<%=sJSFunction%>" text="<%=sComponentDisplayName%>" shortDesc="<%=sComponentDisplayName%>"/> <% if(i==iSelectedTab){ selectedSubComponentType=eusDistinctSubComponents[i]; } } %> </uix:subTabBar> </uix:subTabs> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <% int iSelectedSubComponent=selectedSubComponentType.getType(); String sComponentDisplayName=eusBundle.getString("SUB_COMPONENT_"+iSelectedSubComponent+"_TAB_NAME"); Map jspSuffixMaps=EUSConstants.JSP_FILE_SUFFIX_FOR_SUB_COMPONENT; String sKey=EUSConstants.JSP_FILE_SUFFIX_FOR_SUB_COMPONENT_TYPE_STR+iSelectedSubComponent; String sJspSuffix=(String)jspSuffixMaps.get(sKey); String sJspName = "eussubcomponents_"+sJspSuffix+".jsp"; request.setAttribute(EUSConstants.SUB_COMPONENT_TYPE,selectedSubComponentType); request.setAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT,eusComponent); request.setAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT,sFormDestinationURL); String sSubComponentInstructionTextKey="INS_TEXT_FOR_SUBCOMP_"+iSelectedSubComponent+"_IN_COMP_"+iEUSComponentType; String sSubComponentInstructionText=""; if(eusBundle.getString(sSubComponentInstructionTextKey) != null) sSubComponentInstructionText= eusBundle.getString(sSubComponentInstructionTextKey); %> <uix:rowLayout> <uix:formattedText styleUsage="instruction" text="<%=sSubComponentInstructionText%>" /> </uix:rowLayout> <uix:rowLayout> <uix:include node="<%=sJspName%>"> </uix:include> </uix:rowLayout> </uix:tableLayout> </uix:subTabLayout> <% } %> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_CANCEL_CONFIGURE_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>"/> <% String sCommitJSFun="submitMainForm('"+sCommitDestinationURL+"')"; %> <uix:button onClick="<%=sCommitJSFun%>" text="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>" /> </uix:contents> </uix:pageButtonBar> </uix:rowLayout> </uix:tableLayout> <uix:location> <uix:breadCrumbs> <uix:link shortDescBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" textBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" destination="/console/database/EntDBSec?event=dbLogin"/> <uix:link shortDescBinding="EUS_ENTERPRISE_USER_SECURITY_TEXT@eusMsgs" textBinding="EUS_ENTERPRISE_USER_SECURITY_TEXT@eusMsgs" destination="/console/database/EntDBSec?event=LAUNCHMODULE&configuremodule=/database/EntDBSec/EUS/EUSComponents" /> <% String sDestination="/console/database/EntDBSec/EUS/EUSComponents?event=EUS_COMPONENTS_MAIN_PAGE&EUS_COMPONENT_TYPE="+iEUSComponentType; String sBreadCrumbMainPageTitle=eusBundle.getString("COMPONENT_TYPE_"+iEUSComponentType+"_PAGE_TITLE"); %> <uix:link text="<%=sBreadCrumbMainPageTitle%>" destination="<%=sDestination%>" shortDesc="<%=sBreadCrumbMainPageTitle%>" /> <uix:link /> </uix:breadCrumbs> </uix:location> </uix:pageLayout> </uix:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de