RE: bad error-code syntax - ignore or throw exception?

2004-10-15 Thread Steve Kirk
from a maintenance viewpoint. I'm thinking that there must be a neater way.? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday 15 October 2004 06:16 To: Tomcat Users List Subject: Re: bad error-code syntax - ignore or throw exception? Try

RE: bad error-code syntax - ignore or throw exception?

2004-10-15 Thread Shapira, Yoav
-Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:55 PM To: 'Tomcat Users List' Subject: bad error-code syntax - ignore or throw exception? I'm trying to work out how to configure web.xml to use a custom error page when one of a list of HTTP status codes

Re: bad error-code syntax - ignore or throw exception?

2004-10-15 Thread QM
On Fri, Oct 15, 2004 at 12:44:17PM +0100, Steve Kirk wrote: : configure the error page to handle several different status codes, you have : to keep repeating basically the same 4 lines of config, with just the error : code changing each time - a bit repetitive, and not good from a maintenance :

RE: bad error-code syntax - ignore or throw exception?

2004-10-15 Thread Pawson, David
-Original Message- From: Shapira, Yoav Tomcat will complain if it finds errors it can't deal with. We encourage people to use an independent tool, such as XMLSpy or one of the free online variants, to validate any all XML configuration files. That applies

bad error-code syntax - ignore or throw exception?

2004-10-14 Thread Steve Kirk
I'm trying to work out how to configure web.xml to use a custom error page when one of a list of HTTP status codes are encountered. Couldn't find any documentation, so pure guesswork led me to try this: error-page error-code404,406/error-code

Re: bad error-code syntax - ignore or throw exception?

2004-10-14 Thread muss
Try... error-page error-code404/error-code location/WEB-INF/jsp/Error.jsp/location /error-page error-page error-code406/error-code location/WEB-INF/jsp/Error.jsp/location /error-page I am not sure if you can combine them in one error-page tag however some of our more