Forums Register Login

web.xml

+Pie Number of slices to send: Send
in DD, i made following entry after <welcome-file-list> entry ,
<error-page>
<error-code>404</error-code>
<location>/Notfound.html</location>
</error-page>

In Notfound.html,
i made following enty,
<%@page isErrorPage="true" %>

when i am trying an Url which does not exist, Notfound.html is not getting called instead container is throwing its default error page...
+Pie Number of slices to send: Send
If you're using IE, make sure that "display friendly errors" is turned off in the options (I can't recall the exact name of the option)
+Pie Number of slices to send: Send
 

Originally posted by bnkiran kumar:


In Notfound.html,
i made following enty,
<%@page isErrorPage="true" %>



If you want your JSP directives to actually do something, you need to change the file extension from ".html" to ".jsp".
+Pie Number of slices to send: Send
Where did you put your Notfound.html page?
Make sure it's in the root of the web application.

Also check the spelling.
Make sure the casing is exactly the same in the deployment descriptor as it is in the actual file name.
+Pie Number of slices to send: Send
Thanks Satou and Ben,i will check...
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 998 times.
Similar Threads
Error Page Not Found
jsp:include when the html to be included is not present
Why is my error page not invoked?
web.xml and error-page
custom error pages in tomcat 3.3a
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:13:12.