Kamila Rutkowski
,
Ranch Hand
Nov 02, 2010 08:14:15
I put this tag in web.xml:
but when the error occurs my browser doesn't show errormessage.jsp! instead I see this message:
The website cannot display the page
HTTP 500
Bear Bibeault
,
Sheriff
staff
Nov 02, 2010 08:39:28
As this is not Tomcat-specific, it's been moved to the Servlets forum.
Ravi Kiran Va
,
Ranch Hand
Nov 02, 2010 09:33:28
what is present inside errormessage.jsp ??
Kamila Rutkowski
,
Ranch Hand
Nov 04, 2010 00:14:47
Ravi Kiran Va wrote: what is present inside errormessage.jsp ??
<%@ page isErrorPage="true"%>
<html>
<head></head>
<body>
An error has occurred.
</body>
</html>
Abimaran Kugathasan
,
Ranch Hand
Nov 04, 2010 00:40:20
Try to use <error-code>.
Naren Chivukula
,
Ranch Hand
Nov 04, 2010 05:27:54
Two things!
1. Have you tried putting this code in your jsp throwing any subclass of Throwable?
2. Have you checked if the page not displayed due to some kind of Error which is not a sub-class of Throwable?
Try to use <error-code>.
You don't need to necessarily use errorcode, errorpage should work.
Cheers,
Naren
---------------------------------
SCJP
SCDJWS
SCWCD
Kamila Rutkowski
,
Ranch Hand
Nov 05, 2010 23:16:14
The Error is a sub-class of Throwable. I don't want to use because my project is JSF based on Facelets.
Naren Chivukula wrote: Two things!
1. Have you tried putting this code in your jsp throwing any subclass of Throwable?
2. Have you checked if the page not displayed due to some kind of Error which is not a sub-class of Throwable?
Try to use <error-code>.
You don't need to necessarily use errorcode, errorpage should work.
Cheers,
Naren
---------------------------------
SCJP
SCDJWS
SCWCD
Abimaran Kugathasan
,
Ranch Hand
Nov 06, 2010 10:19:19
I think, we should specify 3 things.
1) In web.xml, the DD
2) isErrorPage attribute of page directive of the error jsp/html.
3) setting the errorPage attribute of the page directive of the jsp with corresponding error page.
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com