File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes handling exceptions declaratively Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "handling exceptions declaratively" Watch "handling exceptions declaratively" New topic
Author

handling exceptions declaratively

Ego Tang
Greenhorn

Joined: Oct 01, 2002
Posts: 11
Hi all,
As I read from the Deshmukh's book, it states that the value of location must start with a "/"(page 99). However, when I read appendix c, the code is:
<error-page>
<error-code>404</error-code>
<location>notfoundpage.jsp</location>
</error-page>
The value of location is not started with a "/", so, which one is right? start with a "/" or without "/"?
Thanks,
ego
Maha Annadurai
Ranch Hand

Joined: Oct 27, 2002
Posts: 87
It is a typo error. The <location> element must start with a /. If we don't then, when the container starts up, we will get an error at the console (in case of Tomcat).
Regards,
Maha Anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: handling exceptions declaratively
 
Similar Threads
error-page element in web.xml
How to handle JSP exceptions declaratively
Many error code for the same location?
welcome-file-list
Error Page Problem