1 | <%--
|
---|
2 | Document : error
|
---|
3 | Created on : Mar 30, 2011, 9:11:05 PM
|
---|
4 | Author : OEM
|
---|
5 | --%>
|
---|
6 |
|
---|
7 | <%@page contentType="text/html" pageEncoding="UTF-8"%>
|
---|
8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
---|
9 | "http://www.w3.org/TR/html4/loose.dtd">
|
---|
10 |
|
---|
11 | <html>
|
---|
12 | <head>
|
---|
13 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
---|
14 | <title>Error Page</title>
|
---|
15 | <link href="../../css/css.css" rel="stylesheet" type="text/css" />
|
---|
16 | <script type="text/javascript" src="../../js/js.js"></script>
|
---|
17 | </head>
|
---|
18 | <body>
|
---|
19 |
|
---|
20 | <jsp:include page="header.jsp" />
|
---|
21 |
|
---|
22 | <div id="content">
|
---|
23 | <%
|
---|
24 | final String FILE_NOT_FOUND_ERROR = "No file selected, please try again.";
|
---|
25 | final String FILE_TYPE_NOT_SUPPORTED_ERROR = "File type not supported. Please select either a Microsoft Word 2007 document, Open Office Text document or a text file and try again.";
|
---|
26 | final String UNEXPECTED_ERROR = "An unexpected error has occurred. Please try again or contact the web administrator if the problem persists.";
|
---|
27 | final String errorCode = (String) request.getAttribute("errorCode");
|
---|
28 | String errorMessage = null;
|
---|
29 | if (errorCode != null) {
|
---|
30 | if (errorCode.equals("FILE_NOT_FOUND_ERROR")) {
|
---|
31 | errorMessage = FILE_NOT_FOUND_ERROR;
|
---|
32 | } else if (errorCode.equals("FILE_TYPE_NOT_SUPPORTED_ERROR")) {
|
---|
33 | errorMessage = FILE_TYPE_NOT_SUPPORTED_ERROR;
|
---|
34 | } else if (errorCode.equals("UNEXPECTED_ERROR")) {
|
---|
35 | errorMessage = UNEXPECTED_ERROR;
|
---|
36 | }
|
---|
37 | }
|
---|
38 | %>
|
---|
39 | <div id="fields">
|
---|
40 | <fieldset>
|
---|
41 | <legend class="tabset_label">Error</legend>
|
---|
42 | <p class="note"><%= errorMessage%></p>
|
---|
43 | </fieldset>
|
---|
44 | </div>
|
---|
45 | </div>
|
---|
46 |
|
---|
47 | <jsp:include page="footer.jsp" />
|
---|
48 | </body>
|
---|
49 | </html>
|
---|