Return-Path: <hidden>
Received: by 10.70.130.8 with HTTP; Mon, 26 Sep 2005 00:08:41 -0700 (PDT)
Message-ID: <hidden>
Date: Mon, 26 Sep 2005 09:08:41 +0200
From: Lukas Vlcek <hidden>
Reply-To: hidden
Sender: hidden
To: hidden
Subject: [Stripes-users] Exception handling in Stripes
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;
h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
b=VFzotysAi02SKrl39HcHdPeWSkVOJ4zKlmuz2wpUWEbPebGjK09OarDm5QG3sjr+vkNphnEuFo4VKmsLhk18TGXZNgtrzpXbMmQM+KQpCZtyau81XTGgL0nH93Nw9XGrK6iOMFqixuHUYBv93cejZhOHTeVmRQFNd2IpGnE/0KY=
Content-Disposition: inline
X-Spam-Score: 0.2 (/)
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.1 AWL AWL: From: address is in the auto white-list
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>, <mailto:hidden?subject=unsubscribe>
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>, <mailto:hidden?subject=subscribe>
List-Archive: <
http://sourceforge.net/mailarchive/forum.php?forum=stripes-users>
Status:
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
hidden
https://lists.sourceforge.net/lists/listinfo/stripes-users