[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception handling
One possibility is
Services from the EJB tier raise application exceptions, which are
caught by service delegates or Action classes depending upon your
abstraction on the client tier. Each application exception caught in
the Action class is translated to a key in application resources, the
error is stored using saveErrors() & then finally displayed in the JSP
page using the <html:errors/> tag.
--- Poorav Chaudhari <pooravc@yahoo.com> wrote:
> Hello,
>
> I am developing a struts based application. Mostly everything is
> running
> smoothly. But I am having difficulty coming up with an effective
> structure for
> exception handling. How should the exceptions be handled at the data
> access
> layer, and how should they be handled at the business layer (i don't
> have any
> ejbs). I have read a few articles on the web regarding this, all they
> have done
> is gotten me a little more confused! I would really like to see how
> some of you
> have handled this. suggestions, tips, examples are all very welcome,
>
> waiting in anticipation.
>
> =====
> - Poorav
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/