Hello,
I'm new to JSP (tomcat 3.1). I want a error.jsp file to catch exceptions when
the jsp applicaion is running.
What I'm doing is following:
1, in the *.jsp file
<%@ page isThreasSafe="false" import="java.util.*", con.userLog, java.sql.*"
errorPage="error.jsp" %>
<jsp:useBean id="mybean" scope="session" class="con.userLog" />
2. in error.jsp file
<%@ isErrorPage="true" import="java.util.*, con.userLog, java.sql.*">
<jsp:useBean id="mybean" scope="session" class="con.userLog" />
3.in userLog.java
in java bean, I wrote JDBC code to execute SQL commands, which will throws
and catch exceptions.
The jsp page works well except the error page, which can't catch exceptions at
all.
For examples, the error.jsp can't catch the exception which occurs when the user
type the wrong username during log in.
Any helps will be highly appreciated!
Best Regards,
Yan
===========================================================================
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