<?xml version="1.0" encoding="ISO-8859-15"?>
<!--
 *   Copyright (C) 2002, 2003, 2004 Jatec AG, Switzerland
 *
 * This file is part of IronMailer.
 *
 * IronMailer is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<xsp:page language="java" 
  xmlns:xsp="http://apache.org/xsp" 
  xmlns:xsp-request="http://apache.org/xsp/request/2.0" 
  xmlns:session="http://apache.org/xsp/session" 
  xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
	<xsp:structure>
		<xsp:include>org.apache.cocoon.environment.http.HttpSession</xsp:include>
		<xsp:include>net.jatec.ironmailer.controller.MailWorkerBean</xsp:include>
	</xsp:structure>
	<page>
		<title>
			<i18n:text>overview_title</i18n:text>
		</title>
		<xsp:logic><![CDATA[
			// jwk: set expires tag in http response header. This is essential in
			// Cocoon 2.0 because there is no other way to avoid caching proxies
			// from caching 
			// TO DO : when moving to Cocoon 2.1, remove this and configure
			// expires within pipeline
			response.setHeader("expires","0");
			response.setHeader("pragma", "no-cache");

		    HttpSession session = (HttpSession)request.getSession(false);
		    MailWorkerBean w = (MailWorkerBean)session.getAttribute("workerBean");
       ]]><user>
				<xsp:expr>w.getUser()</xsp:expr>
			</user>
			<bodyframe>
				<xsp:expr>w.getFirstPage()</xsp:expr>
			</bodyframe>
		</xsp:logic>
	</page>
</xsp:page>
