hi dave,

I  tried the code u sent.I just replaced the" bad script" with some error code.It
works fine.I have given the code for both the jsp files.Try this out.Hope this
helps.

Cheers,
Dheepa


ToError.jsp


<html>
<body>
<%@ page language="java" errorPage="error.jsp" %>
 <%  int x=0;
     int y=5;
     out.println(y/x);
  %>

</body>
</html>


error.jsp


 <%@ page language="java" isErrorPage="true" %>

 <HTML>
<HEAD>
 <TITLE>Error Page</TITLE>
 </HEAD>
 <BODY>
 An error occured
 </BODY>
 </HTML>




























Dave Townsend wrote:

>         Perhaps someone can explain what is going wrong here.
>
>         I'm trying to get an error page to work, here is the first page I call:
>
> -----
> <%@ page language="java" errorPage="error.jsp" %>
>
> <% bad script; %>
> -----
>
> Obviousley this fails to compile, so the errorpage referenced should be
> called:
>
> -----
> <%@ page language="java" isErrorPage="true" %>
>
> <HTML>
> <HEAD>
> <TITLE>Error Page</TITLE>
> </HEAD>
> <BODY>
> An error occured
> </BODY>
> </HTML>
> -----
>
> Which does nothing, just explains what happenned. But this doesn't happen
> the JSWDK just reports that it could not compile the page and suggests that
> I should try using an errorpage to explain this problem.
>
> Why doesn't this work?
>
> ===========================================================================
> 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

===========================================================================
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