[Stripes-users] Re: Exception handling in Stripes

Subject:   [Stripes-users] Re: Exception handling in Stripes (find more)
Date:   Sep 26, 2005 03:41

Return-Path: <hidden>
Received: by with HTTP; Mon, 26 Sep 2005 00:41:36 -0700 (PDT)
Message-ID: <hidden>
Date: Mon, 26 Sep 2005 09:41:36 +0200
From: Lukas Vlcek <hidden>
Reply-To: hidden
Sender: hidden
To: hidden
Subject: [Stripes-users] Re: Exception handling in Stripes
In-Reply-To: <hidden>
Errors-To: hidden
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-To: hidden
Delivered-To: hidden
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
Content-Disposition: inline
References: <hidden>
X-Spam-Score: 0.1 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
 See http://spamassassin.org/tag/ for more details.
 Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001
 0.0 RCVD_BY_IP             Received by mail server with no name
 0.0 SF_CHICKENPOX_HASH     BODY: Text interparsed with
 0.0 SF_CHICKENPOX_PERIOD   BODY: Text interparsed with .
 0.0 SF_CHICKENPOX_SLASH    BODY: Text interparsed with /
 0.0 SF_CHICKENPOX_MINUS    BODY: Text interparsed with -
 0.0 SF_CHICKENPOX_AT       BODY: Text interparsed with @
 0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text interparsed with '
X-BeenThere: hidden
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
X-Reply-To: hidden
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/stripes-users&gt;,
List-Id: A list for dicussing building applications with Stripes. <stripes-users.lists.sourceforge.net>
List-Post: <mailto:hidden>
List-Help: <mailto:hidden?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/stripes-users&gt;,
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=stripes-users>

Well, may be here is something which can help at web container level:


On 9/26/05, Lukas Vlcek <hidden> wrote:
> Hi,
> what is the best practice to handle exceptions in Stripes?
> Is there any facility on Stripes side for exception handling?
> Imagine that almost all methods in ActionBean can throw exception (for
> example database related exception) and I would like to be able to log
> it into log file and display to user in some human readable way (that
> means to pass it to my error.jsp page). I don't think that having
> try{}catch block in every method is a good practice (especially when
> Spring trows RuntimeExceptions because such exceptions are
> not-recoverable).
> I know that this can be easilly done with Struts. Is there any
> possibility how to do it easilly with Stripes? I was looking into code
> and it seems that probably I should extend DispatcherServlet.java
> class and configure this in web.xml file.
> I would expect that Stripes should provide something more
> general/standard for exceptions.
> Regards,
> Lukas

SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Stripes-users mailing list