File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "simple errorPage question" Watch "simple errorPage question" New topic

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

my error page

<%@ page isErrorPage="true"%>
! u coused the ${page.Context.exception}

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...


Can you make it ${pageContext.exeption}


Esam<br />SCJP 1.4, SCWCD 1.4
I agree. Here's the link:
subject: simple errorPage question
It's not a secret anymore!