Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\euseditsubcomponent.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.EUSSubComponent"%> <%@ 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"%> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <% request.setAttribute("eusBundle", new BundleDataObject(NLSUtil.getBundle(EUSMsg.class.getName(), request))); String dbVersion = (String)request.getAttribute("DBVERSION"); int iSelectedTab = 0; if(request.getAttribute("SELECTED_TAB")!=null) { String sSelected=(String)request.getAttribute("SELECTED_TAB"); iSelectedTab=Integer.parseInt(sSelected); } EUSSubComponentType fromRequestSubComponentType=null; String sFRomRequestSubComponentTYpe="0"; if(request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE) != null) { fromRequestSubComponentType=(EUSSubComponentType) request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); sFRomRequestSubComponentTYpe=String.valueOf(fromRequestSubComponentType.getType()); } EUSComponentType fromRequestComponentType=null; String sFRomRequestComponentTYpe="0"; if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) { fromRequestComponentType=(EUSComponentType) request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); sFRomRequestComponentTYpe=String.valueOf(fromRequestComponentType.getType()); } ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); EUSSubComponent eusSubComponent=(EUSSubComponent)request.getAttribute(EUSConstants.EUS_SUB_COMPONENT_CACHED_OBJECT); String sPageTitle= ""; if(request.getAttribute("SUB_COMPONENT_EVENT") != null && ((String)request.getAttribute("SUB_COMPONENT_EVENT")).equals(EUSConstants.EUS_CREATE_SUB_COMPONENT)) { sPageTitle = eusBundle.getString("CREATE_SUB_COMPONENT_"+eusSubComponent.getType()+"_PAGE_TITLE"); } else { sPageTitle = eusBundle.getString("CONFIGURE_SUB_COMPONENT_"+eusSubComponent.getType()+"_PAGE_TITLE"); } sPageTitle = sPageTitle + request.getAttribute("CONFIGURE_SUB_COMPONENT_PAGE_TITLE"); String sSubComponentName = (String) request.getAttribute("CONFIGURE_SUB_COMPONENT_PAGE_TITLE"); String sFormDestinationURL=((String)request.getAttribute("EUS_URL_TO_CONFIGURE_SUB_COMPONENT_PAGE")); EUSSubComponentType selectedSubComponentType = null; String sCreateEditSubComponentInstructionText=eusBundle.getString("CREATE_EDIT_INS_TEXT_FOR_SUBCOMP_"+eusSubComponent.getType()+"_IN_COMP_"+sFRomRequestComponentTYpe); %> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <!-- Set the page title --> <uix:head titleBinding="WINDOW_TITLE@servletRequest"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destination="<%=sFormDestinationURL%>"> <uix:formValue name="ToBeAddedSubComponentsIndexes"/> <uix:formValue name="<%=EUSConstants.SUB_COMPONENT_TYPE%>" value="<%=sFRomRequestSubComponentTYpe%>" /> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=sFRomRequestComponentTYpe%>" /> <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="5" cellSpacing="2"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="subevent" value="Cancel" text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>"/> <uix:submitButton name="subevent" value="Commit" text="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>"/> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> <% if(request.getAttribute("SUB_COMPONENT_EVENT") != null && ((String)request.getAttribute("SUB_COMPONENT_EVENT")).equals(EUSConstants.EUS_CREATE_SUB_COMPONENT)) { %> <uix:rowLayout> <uix:cellFormat> <uix:formattedText styleUsage="instruction" text="Name"/> </uix:cellFormat> <uix:cellFormat> <uix:textInput name="SUB_COMPONENT_NAME" required="true" text="<%=sSubComponentName%>"/> </uix:cellFormat> </uix:rowLayout> <% } %> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:formattedText styleUsage="instruction" text="<%=sCreateEditSubComponentInstructionText%>" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:subTabLayout> <uix:subTabs> <uix:subTabBar selectedIndex="<%=iSelectedTab%>"> <% EUSSubComponentType[] eusDistinctSubComponents=eusSubComponent.getDistinctSubComponentTypes(); int iSubComponetsCount=eusDistinctSubComponents.length; EUSSubComponentType subComponentType=null; String sComponentDisplayName=""; String sComponentURL=""; int iComponentsCount=20; int iSubComponentType=100; String sUrl=(String)request.getAttribute("EUS_URL_TO_CONFIGURE_SUB_COMPONENT_PAGE"); for(int i=0;i<eusDistinctSubComponents.length;i++) { subComponentType=eusDistinctSubComponents[i]; iSubComponentType=subComponentType.getType(); sComponentDisplayName=eusBundle.getString("SUB_COMPONENT_"+iSubComponentType+"_TAB_NAME"); String sFinalUrl=sUrl+"&SUB_COMPONENT_TYPE="+iSubComponentType; %> <uix:link destination="<%=sFinalUrl%>" text="<%=sComponentDisplayName%>"/> <% if(i==iSelectedTab) selectedSubComponentType=eusDistinctSubComponents[i]; } %> </uix:subTabBar> </uix:subTabs> <uix:tableLayout width="100%" cellPadding="5" cellSpacing="5"> <% if(Integer.parseInt(sFRomRequestComponentTYpe)==3) { 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("selectedSubComponentType",selectedSubComponentType); request.setAttribute("eusComponentType",sFRomRequestComponentTYpe); request.setAttribute("eusBundle",eusBundle); request.setAttribute("EUS_URL_TO_CONFIGURE_SUB_COMPONENT_PAGE",sFormDestinationURL); String sSubComponentInstructionTextKey="INS_TEXT_FOR_SUBCOMP_"+iSelectedSubComponent+"_IN_COMP_"+sFRomRequestComponentTYpe; String sSubComponentInstructionText=""; if(eusBundle.getString(sSubComponentInstructionTextKey) != null) sSubComponentInstructionText= eusBundle.getString(sSubComponentInstructionTextKey); %> <uix:rowLayout> <uix:formattedText styleUsage="instruction" text="<%=sSubComponentInstructionText%>" /> </uix:rowLayout> <uix:rowLayout> <uix:formattedText styleUsage="instruction" text="<%=iSelectedSubComponent%>" /> </uix:rowLayout> <uix:rowLayout> <uix:include node="<%=sJspName%>"> </uix:include> </uix:rowLayout> <% } %> </uix:tableLayout> </uix:subTabLayout> <uix:tableLayout width="100%" cellPadding="5" cellSpacing="5" > <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="subevent" value="Cancel" text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>"/> <uix:submitButton name="subevent" value="Commit" text="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>"/> </uix:contents> </uix:pageButtonBar> </uix:rowLayout> </uix:tableLayout> </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