Hi all,

[ thanks to all who have helped with my previous questions ]

Is there a way of instantiating a JSP's 'exception' variable ?

I have two methods to display data retrieved from a database.
One is in HTML form and the other is in image form.  I 'insert'
the data into my JSP as follows:

<%
    if(selectedChart.equals("Table")) {
%>
    <jsp:include page="/servlet/intl.myServlet?..." flush="true" />
<%
    }
    else {
%>
    <IMG SRC="/intl/servlet/intl.myServlet?...">
<%
    }
%>

If an exception is thrown in the servlet how do I propogate this to the
JSP page ?

If the image is not created then the 'broken image' gif appears in the
browser.  I have coded the servlet to get around this by returning
a HTML error message for the "Table" and an Image with an error message
drawn on it for the IMG tag.

Is it possible to get the jsp page referred to by errorPage to handle
these exceptions ?

Thanks for your time,
-John K

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to