Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eusviewsubcomponent.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="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSourceConstants"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <%@ page import="java.util.ResourceBundle"%> <%@ page import="java.util.Map"%> <%@ page import="java.util.Set"%> <%@ page import="java.util.Iterator"%> <%@ page import="java.util.TreeSet"%> <% 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"/> <% ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); EUSComponent eusComponent=(EUSComponent)request.getAttribute(EUSConstants.EUS_COMPONENT_CACHED_OBJECT); int iEUSComponentType=eusComponent.getType().getType(); EUSSubComponent eusSubComponent=(EUSSubComponent)request.getAttribute(EUSConstants.EUS_SUB_COMPONENT_CACHED_OBJECT); int iEUSSubComponentType=eusSubComponent.getType().getType(); String sPageTitle=eusBundle.getString("EUS_VIEW_TEXT"); sPageTitle = sPageTitle + " : " + request.getAttribute("CONFIGURE_SUB_COMPONENT_PAGE_TITLE"); String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); String sComponentPropertyNameSuffix="_FOR_COMP_"+iEUSComponentType; String sCurrentJSP="/database/security/eus/eusviewsubcomponent"; EUSSubComponentType subComponentType=null; 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" destination="<%=sFormDestinationURL%>"> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" value="<%=sCurrentJSP%>"/> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=iEUSComponentType%>" /> <uix:formValue name="<%=EUSConstants.SUB_COMPONENT_TYPE%>" value="<%=iEUSSubComponentType%>" /> <uix:formValue name="subevent" value="cancelview" /> <uix:pageLayout title="<%=sPageTitle%>"> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemGlobal.jspf" %> <%@ include file="/database/security/common/entdbseclogout.jspf" %> <uix:tableLayout width="100%"> <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_EDIT_SUB_COMPONENT%>" text="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_OK_TEXT\")%>"/> </uix:contents> </uix:pageButtonBar> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout> <uix:cellFormat hAlign="left"> <uix:tableLayout hAlign="left" cellPadding="2" cellSpacing="2" width="80%"> <% Map subComponentProperties=eusSubComponent.getProperties(); if(subComponentProperties != null && subComponentProperties.size() > 0) { Set keys=subComponentProperties.keySet(); TreeSet sortedKeys=new TreeSet(keys); Iterator iterator=sortedKeys.iterator(); while(iterator.hasNext()) { String sKey=String.valueOf(iterator.next()); Integer iKey=new Integer(sKey); String sValue=(String)subComponentProperties.get(iKey); String sDisplayProperyName=eusBundle.getString("SUBCOMP_"+iEUSSubComponentType+"_COMP_"+iEUSComponentType+"_COL"+iKey); %> <uix:rowLayout> <uix:cellFormat hAlign="right" width="30%"> <uix:formattedText text="<%=sDisplayProperyName%>" styleUsage="instruction"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:styledText text="<%=sValue%>" styleClass="OraDataText"/> </uix:cellFormat> </uix:rowLayout> <% } } %> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> <% EUSSubComponentType[] eusDistinctSubComponents=eusSubComponent.getDistinctSubComponentTypes(); if(eusDistinctSubComponents != null && eusDistinctSubComponents.length >0) { int iSubComponetsCount=eusDistinctSubComponents.length; String sSubComponentDisplayName=""; for(int x=0;x<eusDistinctSubComponents.length;x++) { subComponentType=eusDistinctSubComponents[x]; int iSubComponentType=subComponentType.getType(); sSubComponentDisplayName=eusBundle.getString("SUB_COMPONENT_"+iSubComponentType+"_TAB_NAME"); String sSubComponentInstructionTextKey="INS_TEXT_FOR_SUBCOMP_"+iSubComponentType+"_IN_COMP_"+iEUSComponentType; String sSubComponentInstructionText=""; String sDSSummaryText=""; String sDSSummaryTextKey="DS_SUMMARY_TXT_FOR_SUBCOMP_"+iSubComponentType+"_IN_COMP_"+iEUSComponentType; if(eusBundle.getString(sSubComponentInstructionTextKey) != null) { sSubComponentInstructionText= eusBundle.getString(sSubComponentInstructionTextKey); sDSSummaryText=eusBundle.getString(sDSSummaryTextKey); } int iColCount = ((Integer)((Map)EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPONENT.get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUBCOMPS_IN_COMP_STR+iEUSComponentType)).get(EUSSubComponentsDataSourceConstants.NUM_COLS_EUS_SUB_COMP_STR+iSubComponentType)).intValue(); %> <uix:rowLayout> <uix:cellFormat hAlign="left"> <uix:tableLayout cellPadding="1" cellSpacing="1" hAlign="left" width="100%"> <% if(iColCount >0) { %> <uix:rowLayout> <uix:cellFormat columnSpan="3"> <uix:header text="<%=sSubComponentDisplayName%>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:spacer width="15"/> </uix:cellFormat> <uix:cellFormat> <uix:formattedText styleUsage="instruction" text="<%=sSubComponentInstructionText%>" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="15"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:spacer width="15"/> </uix:cellFormat> <uix:cellFormat> <% String sDataSourceBinding="EUS_BUILDING_BLOCKS_DATASOURCE_"+iSubComponentType+"@servletRequest"; String sUIXTableName="EUS_BUILDING_BLOCKS_DATASOURCE_"+iSubComponentType; %> <uix:dataScope currentDataBinding="<%=sDataSourceBinding%>"> <uix:table name = "<%=sUIXTableName%>" alternateTextBinding="EUS_NO_ITEMS_FOUND_TEXT@eusMsgs" width="500" tableDataBinding="rowData" minValue="1" formSubmitted="true" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" summary="<%=sDSSummaryText%>" shortDesc="<%=sDSSummaryText%>"> <uix:tableFormat tableBanding="rowBanding"/> <% for(int i=0;i<iColCount;i++) { String sDisplayNameKey="SUBCOMP_"+iSubComponentType+"_COMP_"+iEUSComponentType+"_COL"+i; String sDisplayName = eusBundle.getString(sDisplayNameKey); %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } %> </uix:table> </uix:dataScope> </uix:cellFormat> </uix:rowLayout> <% } %> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> <% } } %> </uix:tableLayout> <uix:tableLayout width="100%"> <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="<%=EUSConstants.EUS_EDIT_SUB_COMPONENT%>" 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%>" /> <% String sConfigureComponentBreadPageTitle=eusBundle.getString("CONFIGURE_COMPONENT_"+iEUSComponentType+"_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_"+iEUSComponentType+"_PAGE_TITLE"); } if(request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE) != null) sBreadCrumbComponentName=(String) request.getAttribute(EUSConstants.CONFIGURE_COMPONENT_PAGE_TITLE); sConfigureComponentBreadPageTitle = sConfigureComponentBreadPageTitle + sBreadCrumbComponentName; %> <%String sConfigureCompURL=request.getContextPath()+sFormDestinationURL+"&SUB_COMPONENT_TYPE="+iEUSSubComponentType+"&event=EUS_EDIT_SUB_COMPONENT&subevent=cancelview";%> <uix:link text="<%=sConfigureComponentBreadPageTitle%>" destination="<%=sConfigureCompURL%>" shortDesc="<%=sConfigureComponentBreadPageTitle%>" /> <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