%--
formOutput.jsp
Alan Pinder - April 10th 2005
This is called by form validation routines. It reads the appropriate formObject
attribute and displays the appropriate error messages, as well as links to
the correct page.
UPDATES:
* Remember we changed the structure of FormValidation.java to use accessor
methods instead of public variables, so we need to update our code to
reflect this change
--%>
<%-- Standard page declarations --%>
<%@ page import="apz.db.*" %>
<%@ page session="true" %>
<%@ page errorPage="error.jsp" %>
<%
// Retrieve the value of our form object
Object tempObj = session.getAttribute("formObject");
// Check it exists! If it doesn't, throw an error
if (tempObj == null)
throw new DbNullPointerException("formObject");
// Cast it to correct type
FormValidation formValidation = (FormValidation)tempObj;
%>