Return-Path: X-Original-To: apmail-click-dev-archive@www.apache.org Delivered-To: apmail-click-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C33519FB4 for ; Tue, 13 Mar 2012 14:00:07 +0000 (UTC) Received: (qmail 23397 invoked by uid 500); 13 Mar 2012 14:00:07 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 23364 invoked by uid 500); 13 Mar 2012 14:00:07 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Delivered-To: moderator for dev@click.apache.org Received: (qmail 40460 invoked by uid 99); 13 Mar 2012 01:56:52 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of seema.richard@gmail.com) Date: Mon, 12 Mar 2012 18:56:27 -0700 (PDT) From: seemarich To: dev@click.apache.org Message-ID: <1331603787226-7367351.post@n2.nabble.com> In-Reply-To: <4F5E2499.8050305@gmail.com> References: <1331560825942-7365359.post@n2.nabble.com> <4F5E2499.8050305@gmail.com> Subject: Re: Exception handling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org hi Bob, I'm able to catch the exception in my page class and generate a formatted error message which I display to the user. This code is common in every page and hence I did not want to repeat it in every page class. What I was trying to do is handle this centrally by overriding the handleException method of ClickServlet and put the error message generation code there and set it into a bindable variable of the page object which caused the exception (so that it can be displayed to the user). However, I'm not able to navigate to the same page and show the message. Is there any way to achieve this? Thanks, Seema -- View this message in context: http://click.1134972.n2.nabble.com/Re-Exception-handling-tp7365787p7367351.html Sent from the click-development mailing list archive at Nabble.com.