Re: [OT] servlet-specific error pages

2011-04-14 Thread Bob Hall
Chris, --- On Wed, 4/13/11 at 1:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: Basically, I want two defaults. If the servlet spec allowed for error-page to include a servlet-name filter, that's what I would use. But it doesn't :( Would an Exception marker interface

Re: [OT] servlet-specific error pages

2011-04-14 Thread sebb
On 14 April 2011 01:10, Justin Randall ran...@hotmail.com wrote: Hi Chris, Of course. I was wondering about other exceptions or errors that maybe I cannot control from that code. Are you referring to internal exceptions within Tomcat's own code or simply unexpected exceptions within the

Re: [OT] servlet-specific error pages

2011-04-13 Thread Francis GALIEGUE
On Wed, Apr 13, 2011 at 00:17, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 János, On 4/12/2011 4:56 PM, János Löbb wrote: Look the 10.9 Error Handling in the 3.0 specifications.  It is maya to me but you might find what you are

RE: [OT] servlet-specific error pages

2011-04-13 Thread Justin Randall
Hi Chris, I'm assuming the servlet is in control of generating all of the errors you are implying? For example, if the servlet doesn't load properly and a 404 would be generated, the servlet would obviously not be in control of handling this exception and this would would have to make use of

Re: [OT] servlet-specific error pages

2011-04-13 Thread János Löbb
Chris, I was thinking about this section in the FM 10.9.2: nyissz Error-page declarations using the exception-type element in the deployment descriptor must be unique up to the class name of the exception-type. Similarly, error-page declarations using the status-code element must be unique in

Re: [OT] servlet-specific error pages

2011-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 János, On 4/13/2011 11:37 AM, János Löbb wrote: I was thinking about this section in the FM 10.9.2: nyissz Error-page declarations using the exception-type element in the deployment descriptor must be unique up to the class name of the

Re: [OT] servlet-specific error pages

2011-04-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justin, On 4/13/2011 9:17 AM, Justin Randall wrote: Hi Chris, I'm assuming the servlet is in control of generating all of the errors you are implying? Yes and no: For example, if the servlet doesn't load properly and a 404 would be

RE: [OT] servlet-specific error pages

2011-04-13 Thread Justin Randall
, Justin Randall Date: Wed, 13 Apr 2011 16:11:09 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: [OT] servlet-specific error pages -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Justin, On 4/13/2011 9:17 AM, Justin Randall wrote: Hi Chris, I'm

RE: [OT] servlet-specific error pages

2011-04-13 Thread Martin Gainty
errors due to programming mistakes as an example. Regards, Justin Randall Date: Wed, 13 Apr 2011 16:11:09 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: [OT] servlet-specific error pages -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [OT] servlet-specific error pages

2011-04-13 Thread Justin Randall
. Regards, Justin Randall Sent from my BlackBerry device -Original Message- From: Martin Gainty mgai...@hotmail.com Date: Wed, 13 Apr 2011 21:47:51 To: Tomcat Users Listusers@tomcat.apache.org Reply-To: Tomcat Users List users@tomcat.apache.org Subject: RE: [OT] servlet-specific error pages

Re: [OT] servlet-specific error pages

2011-04-12 Thread János Löbb
On Apr 12, 2011, at 4:38 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have a webapp where some of the servlets are expected to return XML all the time, even for error conditions. I'd like to be able to set an error page for those servlets so the

Re: [OT] servlet-specific error pages

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 János, On 4/12/2011 4:56 PM, János Löbb wrote: Look the 10.9 Error Handling in the 3.0 specifications. It is maya to me but you might find what you are looking for. Being somewhat familiar with the servlet specification, I was hoping for