Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\euscomponents.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.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:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="olsMsgs" class="oracle.sysman.db.rsc.sec.OLSOIDMsg"/> <uix:bundle name="eusMsgs" class="oracle.sysman.db.rsc.sec.EUSMsg"/> <% int iComponentType=3; if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) iComponentType=((EUSComponentType)request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE)).getType(); ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); String sPageTitle = eusBundle.getString("COMPONENT_TYPE_"+iComponentType+"_PAGE_TITLE"); String sInstructionText=eusBundle.getString("COMPONENT_TYPE_"+iComponentType+"_INST_TXT"); String sDSSummaryText=eusBundle.getString("COMPONENT_TYPE_"+iComponentType+"_DS_SUMMARY_TXT"); String sViewButton = eusBundle.getString("COMPONENT_TYPE_" + iComponentType + "_VIEW_BTN"); String sConfigureButton = eusBundle.getString("COMPONENT_TYPE_" + iComponentType + "_CFG_BTN"); String sViewURL=request.getContextPath()+EUSConstants.EUS_URL_TO_VIEW_COMPONENT_PAGE+iComponentType; String sConfigureURl=request.getContextPath()+EUSConstants.EUS_URL_TO_CONFIGURE_COMPONENT_PAGE+iComponentType; String sDeleteURL=request.getContextPath()+EUSConstants.EUS_URL_TO_DELETE_COMPONENT_PAGE+iComponentType; String sCreateURL=request.getContextPath()+EUSConstants.EUS_URL_TO_CREATE_COMPONENT_PAGE+iComponentType; String sCurrentJSP=EUSConstants.EUS_COMPONENTSMAINPAGE_JSP; String sFormURL=EUSConstants.EUS_BASE_URL_TO_COMPONENTS_MAIN_PAGE+iComponentType; String sSearchURL=request.getContextPath()+EUSConstants.EUS_URL_TO_COMPONENTS_MAIN_PAGE+iComponentType; String sDBOIDAuthMechChangeURL=request.getContextPath()+sFormURL+"&event="+EUSConstants.EUS_PAINT_DB_OID_AUTH_MECHANISM_PAGE; String sDBOIDAuthMechanism=""; if(request.getAttribute(EUSConstants.EUS_DB_OID_AUTH_MECHANISM) != null) sDBOIDAuthMechanism=String.valueOf(request.getAttribute(EUSConstants.EUS_DB_OID_AUTH_MECHANISM)); String sSubmitSearchJS="submitMainForm('"+sSearchURL+"')"; StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(sPageTitle); String sSubmitViewJS="submitMainForm('"+sViewURL+"')"; String sSubmitConfigureJS="submitMainForm('"+sConfigureURl+"')"; String sSubmitDeleteJS="submitMainForm('"+sDeleteURL+"')"; String sSelectionModeDropBoxName="selectionMode_"+ iComponentType; String sSelectionModeDropBoxSelVal="0"; if(request.getAttribute(sSelectionModeDropBoxName) != null) sSelectionModeDropBoxSelVal=(String)request.getAttribute(sSelectionModeDropBoxName); %> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <uix:head title="<%=oemTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destination="<%=sFormURL%>" > <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" value="<%=sCurrentJSP%>"/> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=iComponentType%>" /> <uix:formValue name="<%=EUSConstants.IS_CONFIRMED%>" value="false"/> <uix:script text="function submitMainForm(sFinalUrl) { 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"/> <oem:messageBox messageType="info" errorTableBinding="info@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="2"> <uix:rowLayout> <uix:formattedText styleUsage="instruction" text="<%=sInstructionText%>" /> </uix:rowLayout> </uix:tableLayout> <% if(iComponentType==5) { %> <uix:tableLayout width="60%" cellPadding="3" cellSpacing="3"> <uix:rowLayout> <uix:cellFormat hAlign="right" width="50%"> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(\"EUS_DB_OID_AUTH_MECHANISM\")%>" shortDesc="<%=eusBundle.getString(\"EUS_DB_OID_AUTH_MECHANISM\")%>"/> </uix:cellFormat> <uix:cellFormat hAlign="left" width="20%"> <uix:styledText textBinding="EUS_DB_OID_AUTH_MECHANISM@servletRequest" styleClass="OraDataText"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <% String sDBOIDAuthMechChangeJS="submitMainForm('"+sDBOIDAuthMechChangeURL+"')";%> <uix:button text="<%=eusBundle.getString(\"EUS_CHANGE_TEXT\")%>" onClick="<%=sDBOIDAuthMechChangeJS%>" shortDesc="<%=eusBundle.getString(\"EUS_CHANGE_TEXT\")%>" /> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <% } else { %> <uix:include node="euscomponentssearchproperties.jsp"/> <% } %> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout> <% String sSubmitCreateJS="submitMainForm('"+sCreateURL+"')"; String sSelectionModeChangeJS="submitMainForm('"+sSearchURL+"')"; %> <%if(iComponentType==3) { %> <uix:cellFormat hAlign="left" width="50%"> <uix:messageChoice promptBinding="SELECTION_MODE@dbMsgs" selectedValue="<%=sSelectionModeDropBoxSelVal%>" name="<%=sSelectionModeDropBoxName%>" onChange="<%=sSelectionModeChangeJS%>"> <uix:contents> <uix:option textBinding="SINGLE@dbMsgs" value="0"/> <uix:option textBinding="MULTIPLE@dbMsgs" value="1"/> </uix:contents> </uix:messageChoice> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> <uix:button onClick="<%=sSubmitCreateJS%>" text="<%=eusBundle.getString(\"EUS_CREATE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CREATE_TEXT\")%>" /> </uix:cellFormat> <% } %> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:dataScope currentDataBinding="EUS_COMPONENTS_DATASOURCE@servletRequest"> <uix:table width="100%" name="euscomponents" alternateTextBinding="EUS_NO_ITEMS_FOUND_TEXT@eusMsgs" tableDataBinding="rowData" minValue="1" formSubmitted="true" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" shortDesc="<%=sDSSummaryText%>" summary="<%=sDSSummaryText%>"> <uix:tableFormat tableBanding="rowBanding"/> <% int iColCount = ((Integer)EUSComponentsDataSourceConstants.NUM_COLS_EUS_COMPONENT.get(EUSComponentsDataSourceConstants.NUM_COLS_EUS_COMPONENT_STR+iComponentType)).intValue(); int iStartColCount=((iComponentType==1 || iComponentType==2) ? 1 : 0); for(int i=iStartColCount;i<iColCount;i++) { String sDisplayNameKey="COMPONENT_TYPE_"+ iComponentType + "_COL"+i; String sDisplayName = eusBundle.getString(sDisplayNameKey); if(i==iStartColCount) { %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" sortable="true" shortDesc="<%=sDisplayName%>" /> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <%String sRowURL=sViewURL+"&COMPONENT_NAME="+sDisplayNameKey;%> <uix:link destinationBinding="VIEW_COMPONENT_URL" textBinding="<%=sDisplayNameKey%>" shortDescBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } else { %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" sortable="true" shortDesc="<%=sDisplayName%>" /> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="<%=sDisplayNameKey%>" /> </uix:column> <% } } %> <uix:tableSelection> <uix:switcher defaultCase="0" childName="<%=sSelectionModeDropBoxSelVal%>"> <uix:case name="0"> <uix:singleSelection selectedIndex="0" textBinding="EUS_SELECT_TEXT@eusMsgs" shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:singleSelection> </uix:case> <uix:case name="1"> <uix:multipleSelection shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:multipleSelection> </uix:case> </uix:switcher> </uix:tableSelection> <uix:tableActions> <uix:switcher defaultCase="0" childName="<%=sSelectionModeDropBoxSelVal%>"> <uix:case name="0"> <uix:pageButtonBar> <uix:contents> <% UIXDataSource dataSource=(UIXDataSource)request.getAttribute("EUS_COMPONENTS_DATASOURCE"); if(dataSource != null && dataSource.getRowCount() > 0) { %> <uix:button onClick="<%=sSubmitViewJS%>" text="<%=sViewButton%>" shortDesc="<%=sViewButton%>" /> <uix:button onClick="<%=sSubmitConfigureJS%>" text="<%=sConfigureButton%>" shortDesc="<%=sConfigureButton%>" /> <%if(iComponentType==3) { %> <uix:button onClick="<%=sSubmitDeleteJS%>" text="<%=eusBundle.getString(\"EUS_DELETE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_DELETE_TEXT\")%>" /> <% } } %> </uix:contents> </uix:pageButtonBar> </uix:case> <uix:case name="1"> <uix:pageButtonBar> <uix:contents> <% UIXDataSource dataSource=(UIXDataSource)request.getAttribute("EUS_COMPONENTS_DATASOURCE"); if(dataSource != null && dataSource.getRowCount() > 0 && iComponentType==3) { %> <uix:button onClick="<%=sSubmitDeleteJS%>" text="<%=eusBundle.getString(\"EUS_DELETE_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_DELETE_TEXT\")%>" /> <% } %> </uix:contents> </uix:pageButtonBar> </uix:case> </uix:switcher> </uix:tableActions> </uix:table> </uix:dataScope> </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" /> <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