Re: RuntimeExceptions with Struts
- From: "Tom Dyess" <tdyess@xxxxxxxx>
- Date: Mon, 30 May 2005 17:33:50 -0400
Hi,
We are just starting a struts/hibernate project at work as well. I'm no
expert, but I suspect if the error is being thrown in the servlet (i.e.
LogonAction), the servlet must handle the error, because the browser was
redirected to the servlet and is awaiting a response. I would suggest a
try/catch block forwarding to an error page. I don't know if there is an
easier way to handle it than doing this for every Action, but like I said,
we are just starting as well.
--
Tom Dyess
OraclePower.com
<iksrazal@xxxxxxxxxxxx> wrote in message
news:1117480125.642781.53260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I'm programming in a group project using Struts/String/Hibernate, and
> usually I'm in the model/business layer. Typically I prefer to throw
> RuntimeException for drastic, non-recoverable errors and some
> assertions. Some of our guys are claiming - we are in the integration
> phase where these things pop up more - that RuntimeException is
> producing blank pages, ie, our JSP driven error handler via web.xml
> isn't catching them. My two Struts ebooks has nothing on the subject
> and googling isn't turning up much.
>
> Any ideas?
> iksrazal
>
.
- References:
- RuntimeExceptions with Struts
- From: iksrazal
- RuntimeExceptions with Struts
- Prev by Date: Re: 2's complement
- Next by Date: Re: How to see if an object is part of a specific vector?
- Previous by thread: RuntimeExceptions with Struts
- Next by thread: How to see if an object is part of a specific vector?
- Index(es):