Hello again,
I managed to make it work but I am having another problem. I normally
prevent the user from going backward using the following line:
<script language="JavaScript">
javascript:window.history.forward(1);
</script>
Now, it works perfectly with the other page.... but not with errorPage=true.
Is it Tomcat? or another problem?
Elisabeth
throwError.jsp
=============================
<html>
<head>
<title>Throw Exception</title>
<script language="JavaScript">
javascript:window.history.forward(1);
</script>
</head>
<[EMAIL PROTECTED] errorPage="errorPage0.jsp" %>
<[EMAIL PROTECTED] language="java" %>
<body>
Throwing exception....
<%
// throw ArithmeticException
int badInt = 12/0;
%>
</body>
</html>
errorPage0.jsp
====================
<html>
<head>
<title>Página de Error</title>
<script language="JavaScript">
javascript:window.history.forward(1);
</script>
</head>
<%@ page language="java" isErrorPage="true" %>
<center><H1> DETALLES DEL ERROR OCURRIDO: </H1></center>
<%
if (exception != null)
{
%>
<pre><% exception.printStackTrace(new java.io.PrintWriter(out)); %></pre>
<%
}
%>
</body>
</html>
-----Original Message-----
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: miƩrcoles, 21 de septiembre de 2005 13:31
To: 'Tomcat Users List'
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5 .9
Hello,
I have modified something and it seems to work now!!! If the problem comes
back I will e-mail you again.
Thank you
Elisabeth
-----Original Message-----
From: Jason Bell [mailto:[EMAIL PROTECTED]
Sent: miƩrcoles, 21 de septiembre de 2005 12:38
To: [email protected]
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look
at what is going on.
Regards
Jason
--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]