Hello,

In my project, I am using Model 2 architecture.  A servlet is the initial
entry point, which instantiates the required beans to get data from a
database. It then invokes the JSPs to present the data.

However, I have been experiencing problems with my Error Page.  When, I
include a JSP throwing an exception the JSP engine does not activate the
error page.  I get a standard error message together with a helpful advice
sayng that I should consider using an Error Page. When, I call the same JSP
page directly from the browser the Error Page works OK.  Am I making a
mistake or is it expected?

To tackle the problem, I am planning to have a bean which will be created in
the catch block of the entry servlet and a JSP page that will display the
tailored error message from the bean.  But there is potential problem here:
in most cases probably the request&response will already have been passed to
another JSP.  Therefore, the error page cannot be forwarded the
request&response, only be included. In which case, it will be displayed in
the region of the browser where the original JSP would have been displayed.

Any suggestions are wellcome.

My environment details:  Win95, JSWDK-1.0.1.

Thanks in advance.

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

Reply via email to