<%-- Document : error Created on : Mar 30, 2011, 9:11:05 PM Author : OEM --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> Error Page
<% final String FILE_NOT_FOUND_ERROR = "No file selected, please try again."; 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."; final String UNEXPECTED_ERROR = "An unexpected error has occurred. Please try again or contact the web administrator if the problem persists."; final String errorCode = (String) request.getAttribute("errorCode"); String errorMessage = null; if (errorCode != null) { if (errorCode.equals("FILE_NOT_FOUND_ERROR")) { errorMessage = FILE_NOT_FOUND_ERROR; } else if (errorCode.equals("FILE_TYPE_NOT_SUPPORTED_ERROR")) { errorMessage = FILE_TYPE_NOT_SUPPORTED_ERROR; } else if (errorCode.equals("UNEXPECTED_ERROR")) { errorMessage = UNEXPECTED_ERROR; } } %>
Error

<%= errorMessage%>