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

📄 error.jsp

📁 java windows mda and reveus
💻 JSP
字号:
<%@ page session="true" import="dtw.webmail.model.*" %>

<%-- Ensure authenticated & valid session --%>
<%
	if(session.isNew() 
       || session.getValue("jwma.session")==null 
       || session.getValue("jwma.session.authenticated")==null) {
    		response.sendRedirect(response.encodeRedirectUrl("login.jsp"));
			return;
    }
%><%-- Import taglibs and i18n bundle --%><%@ taglib uri="http://jakarta.apache.org/taglibs/i18n-1.0" prefix="i18n" %><i18n:bundle baseName="viewcontent" localeAttribute="jwma.locale"             resourceClassLoader="jwma.resourceloader" id="bundle"/><i18n:bundle baseName="errormessages" localeAttribute="jwma.locale"             resourceClassLoader="jwma.resourceloader" id="errorbundle" />
<%-- Prepare references for use in the page --%>
<% 
	JwmaHtmlHelper htmlhelper=(JwmaHtmlHelper) session.getValue("jwma.htmlhelper");
    Object o=session.getValue("jwma.error");
	JwmaError error=null;    
	if(o!=null) {
		error=(JwmaError)o;
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
        "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
	<meta http-equiv="Pragma" content="no-cache">
    <title>jwma WebMail</title>
</head>

<body bgcolor="#ffffff" link="#666666" vlink="#666666" alink="#FFFFFF">

<%-- Header & Menu --%>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td><img src="images/logo.png" width="195" height="36" align="right"><a name="top"></a></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3">    <tr bgcolor="#000000">        <td width="9%" align="center">            <a href="<%= htmlhelper.getControllerUrl() %>?acton=session&amp;todo=redirect&amp;view=main">                <img src="images/main_small.png" width="20" height="20" border="0" alt="<i18n:message key="menu.tomain"/>">            </a>        </td>        <td width="3%" align="center">            <a href="<%= htmlhelper.getControllerUrl() %>?acton=message&amp;todo=compose">                <img src="images/compose_small.png" width="20" height="20" border="0" alt="<i18n:message key="menu.compose"/>">            </a>        </td>        <td width="10%" align="center">            <a href="contacts.jsp">                <img src="images/addresses_small.png" width="20" height="20" border="0" alt="<i18n:message key="menu.contacts"/>">            </a>        </td>        <td width="7%" align="center">            <a href="preferences.jsp">                <img src="images/settings_small.png" width="20" height="20" border="0" alt="<i18n:message key="menu.settings"/>">            </a>        </td>        <td width="6%" align="center">            <a href="<%= htmlhelper.getControllerUrl() %>?acton=session&amp;todo=logout">                <img src="images/logout_small.png" width="21" height="20" border="0" alt="<i18n:message key="menu.logout"/>">            </a>        </td>        <td width="65%" bgcolor="#000000">&nbsp;</td>    </tr>    <tr bgcolor="#dadada">        <td width="9%" align="center" nowrap>            <a href="<%= htmlhelper.getControllerUrl() %>?acton=session&amp;todo=redirect&amp;view=main">                <font face="Arial, Helvetica, sans-serif" size="-1"><b><i18n:message key="menu.tomain"/></b></font>            </a>        </td>        <td width="3%" align="center" nowrap>            <a href="<%= htmlhelper.getControllerUrl() %>?acton=message&amp;todo=compose">            <font face="Arial, Helvetica, sans-serif" size="-1"><b><i18n:message key="menu.compose"/></b></font>            </a>        </td>        <td width="10%" align="center" nowrap>            <a href="contacts.jsp">                <font face="Arial, Helvetica, sans-serif" size="-1"><b><i18n:message key="menu.contacts"/></b></font>            </a>        </td>        <td width="7%" align="center" nowrap>            <a href="preferences.jsp">                <font face="Arial, Helvetica, sans-serif" size="-1"><b><i18n:message key="menu.settings"/></b></font>            </a>        </td>        <td width="6%" align="center" nowrap>            <a href="<%= htmlhelper.getControllerUrl() %>?acton=session&amp;todo=logout">                <font face="Arial, Helvetica, sans-serif" size="-1"><b><i18n:message key="menu.logout"/></b></font>            </a>        </td>        <td width="65%" nowrap><font color="#00000">&nbsp;</font></td>    </tr></table><%-- End Header & Menu --%>

<p><%-- Display inlined error --%><% if (error!=null && !error.isDisplayed()) {      String[] errors=error.getDescriptions();      for (int i=0;i<errors.length;i++) {%>	<font size="+1" color="#ff0000"><b><i18n:message key="<%= errors[i] %>" bundle="<%= errorbundle %>"/></b></font><br><%      }   } else {%>	<font size="+1" color="#ff0000"><b><i18n:message key="error.none"/></b></font>
<% } %>
</p>

<%-- Footer --%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#000000" valign="bottom"> 
    <td> <a href="#top"><img src="images/up_small.png" width="15" height="15" align="right" border="0"></a>
      <font size="-2" face="Arial, Helvetica, sans-serif" color="#FFFFFF">&copy; 
      2000-2003 jwma team</font> </td>
  </tr>
</table>
<%-- End Footer --%>
</body>
</html>

⌨️ 快捷键说明

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