authmodules.jsp

来自「GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。」· JSP 代码 · 共 82 行

JSP
82
字号
<%@ page import="org.gridsphere.services.core.security.auth.modules.LoginAuthModule,                 javax.portlet.RenderRequest,                 java.util.Iterator" %><%@ page import="java.util.List" %><%@ taglib uri="/portletUI" prefix="ui" %><%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %><portlet:defineObjects/><jsp:useBean id="services" class="java.lang.String" scope="request"/><% RenderRequest pReq = (RenderRequest) pageContext.getAttribute("renderRequest"); %><% List authModules = (List) request.getAttribute("authModules"); %><ui:messagebox beanId="msg"/><ui:form>    <ui:group key="LOGIN_AUTHMODULES_MSG">        <% if (authModules.size() == 1) { %>        <ui:messagebox key="LOGIN_AUTHMODULES_ONEREQ"/>        <% } %>        <ui:frame>            <ui:tablerow header="true" zebra="true">                <ui:tablecell>                    <ui:text key="LOGIN_MODULE_NAME"/>                </ui:tablecell>                <ui:tablecell>                    <ui:text key="LOGIN_MODULE_ISACTIVE"/>                </ui:tablecell>                <ui:tablecell>                    <ui:text key="LOGIN_MODULE_PRIORITY"/>                </ui:tablecell>                <ui:tablecell>                    <ui:text key="LOGIN_MODULE_DESC"/>                </ui:tablecell>            </ui:tablerow>            <% Iterator it = authModules.iterator(); %>            <% while (it.hasNext()) {                LoginAuthModule authModule = (LoginAuthModule) it.next(); %>            <ui:tablerow>                <ui:tablecell>                    <ui:text value="<%= authModule.getModuleName() %>"/>                </ui:tablecell>                <% if (authModules.size() == 1) { %>                <ui:tablecell>                    <ui:checkbox beanId="authModCB" disabled="true" selected="true"                                 value="<%= authModule.getModuleName() %>"/>                </ui:tablecell>                <% } else { %>                <ui:tablecell>                    <ui:checkbox beanId="authModCB" selected="<%= authModule.isModuleActive() %>"                                 value="<%= authModule.getModuleName() %>"/>                </ui:tablecell>                <% } %>                <ui:tablecell>                    <ui:textfield name="<%= authModule.getModuleName() %>"                                  value="<%= String.valueOf(authModule.getModulePriority()) %>" size="3"/>                </ui:tablecell>                <ui:tablecell>                    <ui:text value="<%= authModule.getModuleDescription(pReq.getLocale()) %>"/>                </ui:tablecell>            </ui:tablerow>            <% } %>        </ui:frame>        <ui:frame>            <ui:tablerow>                <ui:tablecell>                    <ui:actionsubmit action="doSaveAuthModules" key="SAVE"/>                </ui:tablecell>            </ui:tablerow>        </ui:frame>    </ui:group></ui:form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?