> From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
> Subject: RE: customized error page for tomcat depending on code
> 
> I believe the webapp catches it prior to that, Chuck.

If the webapp catches the exception, then how could you expect Tomcat to
process it?

> And FYI, I tried it with a space and without. You would think 
> that I'd get a malformed XML error upon startup, wouldn't you?

No, I wouldn't.  Pretty much any string of Unicode characters is
syntactically valid for most XML attributes; it's the semantics of the
value that are important, and clearly, no class name should have a space
in it (although, technically, spaces are allowed).

Note that the value for an <exception-type> must be a class name,
nothing more.  There's no mechanism defined in the servlet spec to
utilized attributes of an exception, which is what you're trying to do.
If you have control of the webapp, you could have it catch that
particular exception and then rethrow some unique type that could be
declared in <exception-type>.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to