my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes error-page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "error-page" Watch "error-page" New topic


jyothi sanka
Ranch Hand

Joined: Aug 27, 2001
Posts: 39
<exception-type>java.lang.Throwable</exception-type> <location>/errorhandler.jsp</location>

can we use error code and,exception-type elements in single error-page element?
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
From the spec (page 291)

The error-page element contains a mapping between an error code or
exception type to the path of a resource in the web application
<!ELEMENT error-page ((error-code | exception-type), location)>
The error-code contains an HTTP error code, ex: 404
<!ELEMENT error-code (#PCDATA)>
The exception type contains a fully qualified class name of a Java
exception type.
<!ELEMENT exception-type (#PCDATA)>
The location element contains the location of the resource in the
web application
<!ELEMENT location (#PCDATA)>

SCJP 1.4 SCWCD 1.4
I agree. Here's the link:
subject: error-page
It's not a secret anymore!