Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\appctxt\oidappctxtaddattributes.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.OIDAppCtxtMsg"%> <%@ page import="oracle.sysman.emo.adm.security.appctxt.OIDAppCtxtConstants"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ 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"%> <% ResourceBundle oidAppCtxtBundle=NLSUtil.getBundle(OIDAppCtxtMsg.class.getName(), request); boolean bFormFieldsReadOnly=true; String sStatus=(String)request.getAttribute(OIDAppCtxtConstants.OID_APP_CTXT_ATTRIBUTE_STATUS); String sAttributeName=""; if(request.getAttribute("OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME") != null) sAttributeName = (String) request.getAttribute("OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME"); if(sStatus.equals(OIDAppCtxtConstants.OID_APP_CTXT_INSERT_STATUS)) bFormFieldsReadOnly=false; String sPageTitle=""; if(bFormFieldsReadOnly) sPageTitle= oidAppCtxtBundle.getString("OID_APP_CTXT_EDIT_ATTRIBUTE_TITLE") + sAttributeName; else sPageTitle= oidAppCtxtBundle.getString("OID_APP_CTXT_ADD_ATTRIBUTE_TITLE") + sAttributeName; StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(sPageTitle); %> <uix:renderingContext id="renderingContext"> <uix:bundle name="OIDAppCtxtMsg" class="oracle.sysman.db.rsc.sec.OIDAppCtxtMsg"/> <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"/> <oem:setURLEncoder id="renderingContext"/> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <uix:head title="<%=oemTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destinationBinding="FORM_DESTINATION_URL@servletRequest"> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" valueBinding="pageName@servletRequest"/> <uix:formValue name="OID_APP_CTXT_SELECTED_DOMAIN_INDEX" value=""/> <% if(bFormFieldsReadOnly) { %> <uix:formValue name="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME" valueBinding="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME@servletRequest"/> <% } %> <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="3" cellSpacing="3" > <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton textBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" name="event" value="OID_APP_CTXT_CANCEL_ADD_ATTRIBUTE"/> <uix:submitButton textBinding="OID_APP_CTXT_CONTINUE_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CONTINUE_TXT@OIDAppCtxtMsg" name="event" value="OID_APP_CTXT_COMMIT_ADD_ATTRIBUTE"/> </uix:contents> </uix:pageButtonBar> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="50%" cellPadding="3" cellSpacing="3"> <uix:rowLayout> <uix:cellFormat hAlign="right"> <uix:formattedText textBinding="OID_APP_CTXT_DOMAIN_TXT@OIDAppCtxtMsg" styleUsage="instruction"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:styledText textBinding="OID_APP_CTXT_SELECTED_DOMAIN_NAME@servletRequest" styleClass="OraDataText"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="right"> <uix:formattedText textBinding="OID_APP_CTXT_NAME_TXT@OIDAppCtxtMsg" styleUsage="instruction"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:styledText textBinding="Application_Context_Name@servletRequest" styleClass="OraDataText"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <% if(bFormFieldsReadOnly) { %> <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_NAME@OIDAppCtxtMsg" /> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:styledText textBinding="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME@servletRequest" styleClass="OraDataText"/> </uix:cellFormat> <% } else { %> <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_NAME@OIDAppCtxtMsg" labeledNodeId="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:messageTextInput textBinding="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME@servletRequest" name="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME" id="OID_APP_CTXT_SELECTED_ATTRIBUTE_NAME"/> </uix:cellFormat> <% } %> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellSpacing="3"> <uix:rowLayout hAlign="right"> <uix:submitButton name="event" value="OID_APP_CTXT_COMMIT_ADD_VALUE_TO_ATTRIBUTE" textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_ADD_VALUE@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_ADD_ATTRIBUTE_ADD_VALUE@OIDAppCtxtMsg"/> </uix:rowLayout> <uix:rowLayout> <uix:dataScope currentDataBinding="OID_APP_CTXT_AVAILABLE_ATTRIBUTE_VALUES_DS@servletRequest"> <uix:table width="100%" name="OID_APP_CTXT_AVAILABLE_ATTRIBUTE_VALUES_DS" 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 %>" summaryBinding="OID_APP_CTXT_LIST_ATTRIBUTES_VALUES_DS_SUMMARY_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_LIST_ATTRIBUTES_VALUES_DS_SUMMARY_TXT@OIDAppCtxtMsg"> <uix:column useSeparateRows="true"> <uix:columnHeader> <uix:sortableHeader textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_COL1@OIDAppCtxtMsg" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:messageTextInput name ="OID_APP_CTXT_ATTRIBUTE_VALUE_NAME" textBinding="OID_APP_CTXT_ATTRIBUTE_VALUE_NAME" shortDescBinding="OID_APP_CTXT_ADD_ATTRIBUTE_COL1@OIDAppCtxtMsg"/> </uix:column> <uix:column useSeparateRows="true"> <uix:columnHeader> <uix:sortableHeader textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_COL2@OIDAppCtxtMsg" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="OID_APP_CTXT_ATTRIBUTE_VALUE_USERS_COUNT" /> </uix:column> <uix:tableSelection> <uix:singleSelection selectedIndex="0" shortDescBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" textBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg"> </uix:singleSelection> </uix:tableSelection> <uix:tableActions> <% UIXDataSource dataSource=(UIXDataSource)request.getAttribute("OID_APP_CTXT_AVAILABLE_ATTRIBUTE_VALUES_DS"); if(dataSource != null && dataSource.getRowCount() > 0) { %> <uix:pageButtonBar> <uix:contents> <uix:submitButton name="event" value="OID_APP_CTXT_ATTRIBUTE_VALUE_USERS" textBinding="OID_APP_CTXT_ADD_ATTRIBUTE_COL2@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_ADD_ATTRIBUTE_COL2@OIDAppCtxtMsg"/> <uix:submitButton name="event" value="OID_APP_CTXT_COMMIT_DELETE_VALUE_FROM_ATTRIBUTE" textBinding="OID_APP_CTXT_REMOVE_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_REMOVE_TXT@OIDAppCtxtMsg"/> </uix:contents> </uix:pageButtonBar> <% } %> </uix:tableActions> </uix:table> </uix:dataScope> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellPadding="3" cellSpacing="3" > <uix:rowLayout hAlign="right"> <uix:pageButtonBar> <uix:contents> <uix:submitButton textBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" name="event" value="OID_APP_CTXT_CANCEL_ADD_ATTRIBUTE"/> <uix:submitButton textBinding="OID_APP_CTXT_CONTINUE_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CONTINUE_TXT@OIDAppCtxtMsg" name="event" value="OID_APP_CTXT_COMMIT_ADD_ATTRIBUTE"/> </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="OID_APP_CTXT_TXT@OIDAppCtxtMsg" textBinding="OID_APP_CTXT_TXT@OIDAppCtxtMsg" destination="/console/database/EntDBSec/AppCtxt?event=LAUNCHMODULE&configuremodule=/database/EntDBSec/AppCtxt" /> <% String sAppCtxtStatus =""; String sApplicationContextName=""; if(request.getAttribute(OIDAppCtxtConstants.OID_APP_CTXT_STATUS) != null) sAppCtxtStatus=(String)request.getAttribute(OIDAppCtxtConstants.OID_APP_CTXT_STATUS); if(request.getAttribute("Application_Context_Name") != null) sApplicationContextName=(String)request.getAttribute("Application_Context_Name"); String sBreadCrumbDisplayName=""; String sBreadCrumbDisplayUrl=""; if(sAppCtxtStatus.equals(OIDAppCtxtConstants.OID_APP_CTXT_INSERT_STATUS)) sBreadCrumbDisplayName=oidAppCtxtBundle.getString("OID_APP_CTXT_INSERT_PAGE_TITLE") + sApplicationContextName; else sBreadCrumbDisplayName=oidAppCtxtBundle.getString("OID_APP_CTXT_EDIT_PAGE_TITLE") + sApplicationContextName; if(request.getAttribute("FORM_DESTINATION_URL") != null) { sBreadCrumbDisplayUrl=(String)request.getAttribute("FORM_DESTINATION_URL"); } if(sBreadCrumbDisplayUrl.equals("")==false) { sBreadCrumbDisplayUrl=sBreadCrumbDisplayUrl+"?event=OID_APP_CTXT_CANCEL_ADD_ATTRIBUTE"; } if(sBreadCrumbDisplayName.equals("")==false && sBreadCrumbDisplayUrl.equals("")==false ) { %> <uix:link shortDesc="<%=sBreadCrumbDisplayName%>" text="<%=sBreadCrumbDisplayName%>" destination="<%=sBreadCrumbDisplayUrl%>" /> <% } %> <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