Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 29252 invoked from network); 9 Oct 2007 20:49:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 20:49:31 -0000 Received: (qmail 76460 invoked by uid 500); 9 Oct 2007 20:49:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76334 invoked by uid 500); 9 Oct 2007 20:49:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 76323 invoked by uid 99); 9 Oct 2007 20:49:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 13:49:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [63.240.77.83] (HELO sccrmhc13.comcast.net) (63.240.77.83) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 20:49:10 +0000 Received: from [192.168.13.56] (c-68-50-201-35.hsd1.va.comcast.net[68.50.201.35]) by comcast.net (sccrmhc13) with SMTP id <2007100920481101300pk829e>; Tue, 9 Oct 2007 20:48:11 +0000 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <1083AAE7-BE31-4921-B984-68D2695C2034@tchijov.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Tomcat Users List From: Andrei Tchijov Subject: Using RequestDispatcher.include() outside of Request/Response cycle. Date: Tue, 9 Oct 2007 16:48:10 -0400 X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a valve which detects some events in life-cycle of a web application ( like successful login/failed login/logout ) and invokes some configurable JSP page to let it perform some audit auctions ( like putting records in the table which trace access to application ). It works fine, the only problem is auditing session timeouts. I can (and do) add session listener, so it is not a problem to detect that session timed out. The problem is how to invoke my audit JSP page. RequestDispatcher.include() require Request and Response objects which are obviously not accessible inside SessionEvent callback. Should I create some sort of "fake" Request/ Response objects? Can I reuse some Request/Response objects from earlier (like when valve detected creation of the session)? Audit JSP page does NOT produce any output and it does NOT require any information from Request, so this Request/Response objects only need to be able to make RequestDispatcher.include() happy. Your thoughts will be highly appreciated, Andrei Tchijov --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org