Forums Register Login

simple errorPage question

+Pie Number of slices to send: Send
i can't gat my errorPage to be shown when exception happen? using tomcat 5.0.28
in my web.xml i have
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/isErrorPage.jsp</location>
</error-page>

my error page

<%@ page isErrorPage="true"%>
<html><body>
! u coused the ${page.Context.exception}
<%=exception.getMessage()%>
</body></html>

and in my norty-code:

<%if (true){throw new RuntimeException("!!!");}%>


i allways geting my standard blanko 500-Page

HTTP 500 - Internal server error
Internet Explorer
+Pie Number of slices to send: Send
Hi Ner,
Could you try to make your error page named just ErrorPage.jsp
isErrorPage is page attribute...just being standard.

And get rid of that scriptlet for now,
try not to mix up scriptlet and EL ..
The purpose of EL is to get rid of that scriptlet eventually...

Anyway..
Here:


Can you make it ${pageContext.exeption}

Esam
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 666 times.
Similar Threads
Question about error pages and JSTL
error pages in dd
Why is my error page not invoked?
pageContext.exception is not executing
problem while declaring error page
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:29:37.