Ideally I would let the exception object traverse to the jsp from the bean.
If customization is needed, I'd catch the exceptions in the bean and throw
own Exception objects (extended from java.lang.Exception).

Rishabh.

                -----Original Message-----
                From:   Lenin Lopez [mailto:[EMAIL PROTECTED]]
                Sent:   Wednesday, May 23, 2001 5:14 AM
                To:     [EMAIL PROTECTED]
                Subject:        How to handle errors from a Java Bean

                Hi all,

                I have an appliation that works fine,  except that I do not
have any arror
                handling ( other that the normal try and catch blocks)
                My question is how do you guys pass an error from a bean to
the JSP.

                I know hoe to handle errors from a JSP but I don't quite
know how to pass an
                error from a bean to the JSP

                thanks


===========================================================================
                To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
                For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
                Some relevant FAQs on JSP/Servlets can be found at:

                 http://java.sun.com/products/jsp/faq.html
                 http://www.esperanto.org.nz/jsp/jspfaq.html
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
                 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to