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

📄 errorpage.jsp

📁 JAVA做的J2EE下CA认证系统 基于EJB开发
💻 JSP
字号:
<%@ page pageEncoding="ISO-8859-1"%><%@page isErrorPage="true" import="se.anatom.ejbca.webdist.webconfiguration.EjbcaWebBean,se.anatom.ejbca.ra.raadmin.GlobalConfiguration, se.anatom.ejbca.authorization.AuthorizationDeniedException,                                   se.anatom.ejbca.authorization.AuthenticationFailedException"%><jsp:useBean id="ejbcawebbean" scope="session" class="se.anatom.ejbca.webdist.webconfiguration.EjbcaWebBean" /><jsp:setProperty name="ejbcawebbean" property="*" /> <%   // Initialize environment   GlobalConfiguration globalconfiguration = ejbcawebbean.initialize_errorpage(request);%><html><head>  <title><%= globalconfiguration.getEjbcaTitle() %></title>  <base href="<%= ejbcawebbean.getBaseUrl() %>">  <link rel=STYLESHEET href="<%= ejbcawebbean.getCssFile() %>"></head><body><br><br><% if( exception instanceof AuthorizationDeniedException){       // Print Authorization Denied Exception.     out.write("<H2>" + ejbcawebbean.getText("AUTHORIZATIONDENIED") + "</H2>");     out.write("<H4>" + ejbcawebbean.getText("CAUSE") + " : " + exception.getMessage() + "</H4>");     exception.printStackTrace() ; // TODO Remove   }   else   if( exception instanceof AuthenticationFailedException){       // Print Authorization Denied Exception.     out.write("<H2>" + ejbcawebbean.getText("AUTHORIZATIONDENIED") + "</H2>");     out.write("<H4>" + ejbcawebbean.getText("CAUSE") + " : " + exception.getMessage() + "</H4>");   }else{       // Other exception occured, print exception and stack trace.        out.write("<H2>" + ejbcawebbean.getText("EXCEPTIONOCCURED") + "</H2>");     out.write("<H4>" + exception.toString() + " : " + exception.getMessage() + "</H4>");     exception.printStackTrace() ;   }%></body></html>

⌨️ 快捷键说明

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