Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 23147 invoked from network); 21 Jul 2003 16:12:13 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Jul 2003 16:12:13 -0000 Received: (qmail 22521 invoked by uid 97); 21 Jul 2003 16:14:46 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 22514 invoked from network); 21 Jul 2003 16:14:46 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 Jul 2003 16:14:46 -0000 Received: (qmail 21736 invoked by uid 500); 21 Jul 2003 16:11:58 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21723 invoked from network); 21 Jul 2003 16:11:58 -0000 Received: from bay8-f83.bay8.hotmail.com (HELO hotmail.com) (64.4.27.83) by daedalus.apache.org with SMTP; 21 Jul 2003 16:11:58 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 21 Jul 2003 09:12:02 -0700 Received: from 62.84.168.178 by by8fd.bay8.hotmail.msn.com with HTTP; Mon, 21 Jul 2003 16:12:01 GMT X-Originating-IP: [62.84.168.178] X-Originating-Email: [matthewoatham@hotmail.com] From: "Matthew Oatham" To: tomcat-user@jakarta.apache.org Bcc: Subject: Re: isErrorPage="true" NOT WORKING? Date: Mon, 21 Jul 2003 17:12:01 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 Jul 2003 16:12:02.0077 (UTC) FILETIME=[D1DDB4D0:01C34FA2] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N BTW the exception is being thrown from a method inside a servlet as follows: public synchronized void writeOrder(HttpServletRequest request) throws IOException { Date d = new Date(); DateFormat df = DateFormat.getDateInstance(); String fileName = (request.getRemoteUser() + "." + df.format(d)); //Create FileWriter for append. FileWriter fw = new FileWriter(ordersDir + System.getProperty("file.separator") + fileName + ".txt", true); PrintWriter pw = new PrintWriter(fw); pw.println(orderString(request)); //Close the file. fw.close(); } From: "Matthew Oatham" Reply-To: "Tomcat Users List" To: tomcat-user@jakarta.apache.org Subject: isErrorPage="true" NOT WORKING? Date: Mon, 21 Jul 2003 17:04:57 +0100 Hi, I have a web app inside which I have an errorPage.jsp file. My web.xml file defines: java.lang.Throwable errorPage.jsp And my errorPage.jsp is as follows: <%@ page isErrorPage="true" %> <%@ import="java.io.*;"%> TOKENS Offline Order Error

Error

An error occurred performing the last operation.

Please press the back button and try again. Alternatively contact the System Administrator.

exception.printStackTrace(new java.io.PrintWriter(out, true));%> However when I encounter a java.io.FileNotFoundException: c:\solttma\orders\administrator.21-Jul-03.txt (The system cannot find the path specified) exception I get the old tomcat error page and not the error page I created? Any ideas? Thanks Matt _________________________________________________________________ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org _________________________________________________________________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org