Hi,
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 to web.xml as well.

Yoav Shapira http://www.yoavshapira.com


>-----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 are encountered.  Couldn't find
any
>documentation, so pure guesswork led me to try this:
>
>       <error-page>
>               <error-code>404,406</error-code>
>               <location>/WEB-INF/jsp/Error.jsp</location>
>       </error-page>
>
>It doesn't do what I was intending, in that neither 404 nor 406 codes
are
>handled by Error.jsp - however I was surprised that there is no
Exception
>logged by Tomcat when parsing this web.xml - shouldn't it throw an
>Exception, rather than ignore it??  I've found that Tomcat is usually
very
>thorough at reporting problems with web.xml, so this seems unusual.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to