Hi all
I've added the following to my web.xml (thanks for the help)
error-page
error-code500/error-code
location/error.jsp/location
/error-page
error-page
error-code404/error-code
location/error.jsp/location
/error-page
error-page
error-codejava.lang.Exception/error-code
David,
I think Tomcat 4.x has a bug in which 500 errors are not captured. I ran
into this before. Could be?
Thanks,
Paul
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 2:34 PM
To: Struts Users Mailing List
Subject: error-page not catching
See if you can pitch a 404 error. If that works, then it's not your
program's problem.
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
*Subject:* Re: error-page not catching errors...
I also caused a java.sql.SQLException which didnt get caught either :(
On 5/26/05, Benedict, Paul C [EMAIL PROTECTED] wrote:
David,
I think Tomcat 4.x has a bug in which 500 errors are not captured. I
ran
into this before
if you don't upgrade.
-Original Message-
*From:* David Johnson [mailto: [EMAIL PROTECTED]
*Sent:* Thursday, May 26, 2005 2:39 PM
*To:* Benedict, Paul C
*Subject:* Re: error-page not catching errors...
yeah. 4.1.28 actually.
On 5/26/05, Benedict, Paul C [EMAIL
2:51 PM
To: Struts Users Mailing List
Subject: Fwd: error-page not catching errors...
I'm forwarding this to the Tomcat List as well, I'll forward any helpful
responses for archival purposes.
Thanks all!
On 5/26/05, David Johnson [EMAIL PROTECTED] wrote:
Wow
It's insane to me
have seen issues when request are passed through
Apache. Be sure to test against Tomcat directly.
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 2:51 PM
To: Struts Users Mailing List
Subject: Fwd: error-page not catching errors
From: David Johnson [EMAIL PROTECTED]
It's insane to me that this cant be done with Tomcat 4.1.31
the Struts documents tell you to do exactly what I'm trying.
http://jakarta.apache.org/tomcat/faq/misc.html#error
I think what you might be running into is that when you catch an error 500
by
, and the second for
failures during the response.
Thanks!
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 3:21 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: error-page not catching errors...
From: David Johnson [EMAIL PROTECTED
some low threshold regarding size.
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 3:21 PM
To: Struts Users Mailing List
Subject: Re: error-page not catching errors...
HHm interesting. I'm only using Tomcat.
Can you check up at the top
Doesnt work. I just get the standard IE error page.
bah! It's my program (the shock is almost too much)
On 5/26/05, Andrew Thorell [EMAIL PROTECTED] wrote:
See if you can pitch a 404 error. If that works, then it's not your
program's problem.
Andrew
Oh, one more thing.
what I'm really trying to avoid is the user using the back button, so
I've added the following to my pages
% response.setHeader(Pragma,no-cache);%
% response.setHeader(Cache-Control,no-store);%
% response.setDateHeader(Expires,-1);%
Now, when I use the back button, I get
Alright ONE more thing
I see in your WIKI --
http://wiki.wendysmoak.com/cgi-bin/wiki.pl?TomcatErrorPage that I cant put a
tiles-def in the location field, but what if I forward to a normal JSP that
has the following (only) in it
logic:forward name=error/
Then in my struts-config I have
Have you tried testing in Firefox to see if you get the same result.
Internet Explorer may be confusing the issue:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807
Several frequently-seen status codes have friendly error messages
that Internet Explorer 5./x/ displays and that
From: David Johnson [EMAIL PROTECTED]
Now, when I use the back button, I get the expided page... page. When I
reload, I get the error 500
Have you changed the page that you're using for error 500, or is it still
using Tiles? That, IMO, is the problem. Tomcat has no idea what you mean
by
From: David Johnson [EMAIL PROTECTED]
I really want to use a tiles def here somehow or my
**only** page that is all hardcoded will be error.jsp.
thoughts?
What is the root cause of the error 500? Take the error-page out and look
at the stack trace. Ignoring any ServletExceptions, what's the
Ahem, this signature You can lead a horse to water but you cannot
make it float on its back get a lots of sense now ;-)
I believe that it is a bad application design, when clicking browser
Back button breaks the application. Or an innocent page refresh
resubmits a form.
Instead of displaying
Wendy,
Removing tiles from the equation has done the trick. I will emphasize that
they should be using the supplied navigation scheme during training
Thanks
John
On 5/26/05, Wendy Smoak [EMAIL PROTECTED] wrote:
From: David Johnson [EMAIL PROTECTED]
I really want to use a tiles def
18 matches
Mail list logo