aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes simple errorPage question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "simple errorPage question" Watch "simple errorPage question" New topic
Author

simple errorPage question

Ner min
Ranch Hand

Joined: Sep 14, 2005
Posts: 76
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
Esam Ahmed
Ranch Hand

Joined: Aug 10, 2005
Posts: 101
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


Esam<br />SCJP 1.4, SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: simple errorPage question
 
Similar Threads
problem while declaring error page
error pages in dd
pageContext.exception is not executing
Why is my error page not invoked?
Question about error pages and JSTL