⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 authmodules.jsp

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JSP
字号:
<%@ 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -