Hello,
I have actually tried to send this e-mail before but could not see it in the
list so I'm trying again.
In my project, I'm using Model-2 architecture, everything works fine but the
error handling. When a JSP page is included by the controller servlet (e.g
requestDispatcher.include(request, response)) my ErrorPage is not activated
when the included jsp and/or the bean throws an exception. All I get is a
standard error message with an additional message saying that I should
consider using an ErrorPage. When I invoke the JSP page, which throws the
exception, via the browser everything is fine, error page is invoked and
displays an understandable message to the end user. Am I doing something
wrong or is this expected when jsp pages are included by the controller
servlet?
My environment details: JSWDK-1.0.1, Win95.
If I cannot solve the problem I am planning to have an ErrorBean that is
instantiated in the catch block of the controller servlet. Then the
error.jsp is invoked by the servlet to display the message obtained from the
ErrorBean. However, there are potential problems. First of all, this
work-around is not a proper solution to sustain as the project gets bigger
and more complex. Second the ErrorPage will still have to be included as
most probably before the exception is thrown, other jsp pages would have
processed the response. In this case, the error page will be displayed in
the region of the browser where the original exception-throwing jsp page
would be.
Any suggestions are welcome.
Bulent
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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