<%--
  % This Javer Server Page is part of the iX JSP tutorial.
  % Check Customer
  % 
 --%>


<%-- Setting up an error page --%>
<%@ page errorPage="/jspTutorial/errorpage.jsp" %>


<%-- import needed java classes --%>	 
<%@ page import="de.ix.jspTutorial.model.Customer" %>

<jsp:useBean id="customer" type="de.ix.jspTutorial.model.Customer" scope="session"/>

<%
if(customer != null) {
  session.removeAttribute("customer") ;
%>
<jsp:forward page="index.jsp" />
<%} else {%>
<jsp:forward page="customer.jsp" />
<% } %>