ahfei wrote:
>
> dear all:
>
> i wrote a jsp program , inside using a java bean to access database.i want to
> redirect to another html page when a Exception in my bean,so i use below code ,but
> seems have no helpful.
> <%@ page import="java.sql.*" errorPage="/index.html" %>
> can somebody help me?
You don't say what happens, but a potential problem in your eaxmple is that you
specify an HTML page as the error page; it must be a JSP page in JSP 1.0/1.1,
see the JSP specification for details.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.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