source: other-projects/the-macronizer/trunk/web/jsp/mi/error.jsp@ 29855

Last change on this file since 29855 was 29855, checked in by davidb, 9 years ago

John's code after refactoring by Tom over the summer of 2014/2015

File size: 2.1 KB
Line 
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 = "Kāore tētehi kōnae i whiria, whakamātau anō koa.";
25 final String FILE_TYPE_NOT_SUPPORTED_ERROR = "Tē whakaaetia tēnei momo kōnae. Kōwhiritia koa tētehi tuhinga Microsoft Word 2007, tuhinga Open Office Text, tuhinga kuputuhi rānei, kātahi ka whakamātau anō.";
26 final String UNEXPECTED_ERROR = "Kua puta mai he hapa ohorere. Ngana anō koa, ki te raruraru tonu koe whakapā atu ki tō kaiwhakahaere tukutuku.";
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">Hapa</legend>
42 <p class="note"><%= errorMessage%></p>
43 </fieldset>
44 </div>
45 </div>
46
47 <jsp:include page="footer.jsp" />
48 </body>
49</html>
Note: See TracBrowser for help on using the repository browser.