<%@ 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"%> <%@ 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"); 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= ""; String sEvent=""; 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"); sEvent=EUSConstants.EUS_CREATE_SUB_COMPONENT; } else { sPageTitle = eusBundle.getString("CONFIGURE_SUB_COMPONENT_"+eusSubComponent.getType()+"_PAGE_TITLE"); sEvent=EUSConstants.EUS_EDIT_SUB_COMPONENT ; } 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")); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); String sCommitDestinationURL=request.getContextPath()+sFormDestinationURL+ "&event="+sEvent+"&subevent=commit"; String sCancelDestinationURL=request.getContextPath()+sFormDestinationURL+ "&event="+sEvent+"&subevent=cancel"; String sCommitJSFunction="submitMainForm('"+sCommitDestinationURL+"')"; String sCancelJSFunction="submitMainForm('"+sCancelDestinationURL+"')"; String sTabDestinationURL=""; String sTabDestinationURLPrefix = request.getContextPath()+ EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_SUFFIX + sFRomRequestComponentTYpe + EUSConstants.EUS_BASE_URL_TO_COMPONENT_PAGE_PREFIX ; String sTabDestinationURLSuffix = "&event="+sEvent; EUSSubComponentType selectedSubComponentType = null; String sCreateEditSubComponentInstructionText=eusBundle.getString("CREATE_EDIT_INS_TEXT_FOR_SUBCOMP_"+eusSubComponent.getType()+"_IN_COMP_"+sFRomRequestComponentTYpe); String sCurrentJSP="/database/security/eus/euscreateeditsubcomponent_roles"; //Currently when user hits enter on role-name text filed gives an internal error page //To solve the issue, adding a default form submit. String sDefaultFormURL=sTabDestinationURLPrefix+sFRomRequestSubComponentTYpe+sTabDestinationURLSuffix; String sDefaultJSFunction="submitMainForm('"+sDefaultFormURL+"')"; StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(sPageTitle); %> <%@ include file="/oemTitle.jspf" %> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemGlobal.jspf" %> <%@ include file="/database/security/common/entdbseclogout.jspf" %> " shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" /> " shortDesc="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" /> <% if(request.getAttribute("SUB_COMPONENT_EVENT") != null && ((String)request.getAttribute("SUB_COMPONENT_EVENT")).equals(EUSConstants.EUS_CREATE_SUB_COMPONENT)) { %> " prompt="<%=eusBundle.getString(\"EUS_NAME_TEXT\")%>" onKeyPress="if(_getKC(event)==13) return false; else return true;" /> <% } %> <% EUSSubComponentType[] eusDistinctSubComponents=eusSubComponent.getDistinctSubComponentTypes(); int iSubComponetsCount=eusDistinctSubComponents.length; EUSSubComponentType subComponentType=null; String sComponentDisplayName=""; String sComponentURL=""; int iComponentsCount=20; int iSubComponentType=100; for(int i=0;i <% if(i==iSelectedTab) selectedSubComponentType=eusDistinctSubComponents[i]; } %> <% 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(EUSConstants.SUB_COMPONENT_TYPE,selectedSubComponentType); request.setAttribute(EUSConstants.EUS_COMPONENT_TYPE,sFRomRequestComponentTYpe); request.setAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT,sFormDestinationURL); request.setAttribute("SUB_COMPONENT_EVENT",sEvent); String sSubComponentInstructionTextKey="INS_TEXT_FOR_SUBCOMP_"+iSelectedSubComponent+"_IN_COMP_"+sFRomRequestComponentTYpe; String sSubComponentInstructionText=""; if(eusBundle.getString(sSubComponentInstructionTextKey) != null) sSubComponentInstructionText= eusBundle.getString(sSubComponentInstructionTextKey); %> <% } %> " shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" /> " shortDesc="<%=eusBundle.getString(\"EUS_CONTINUE_TEXT\")%>" /> <% String sDestination="/console/database/EntDBSec/EUS/EUSComponents?event=EUS_COMPONENTS_MAIN_PAGE&EUS_COMPONENT_TYPE="+sFRomRequestComponentTYpe; String sBreadCrumbMainPageTitle=eusBundle.getString("COMPONENT_TYPE_"+sFRomRequestComponentTYpe+"_PAGE_TITLE"); %> <% String sConfigureComponentBreadPageTitle=eusBundle.getString("CONFIGURE_COMPONENT_"+sFRomRequestComponentTYpe+"_PAGE_TITLE"); String sBreadCrumbComponentName=""; if(request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT) != null && ((String)request.getAttribute(EUSConstants.EUS_COMPONENT_EVENT)).equals(EUSConstants.EUS_NEW_STATUS)) { sConfigureComponentBreadPageTitle=eusBundle.getString("CREATE_COMPONENT_"+sFRomRequestComponentTYpe+"_PAGE_TITLE"); } if(request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE) != null) sBreadCrumbComponentName=(String) request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE); sConfigureComponentBreadPageTitle = sConfigureComponentBreadPageTitle + sBreadCrumbComponentName; %>