Solved

Error page tag in web.xml

Posted on 2003-10-22
3
638 Views
Last Modified: 2013-12-10
Hi,

I have the following

<error-page>
        <error-code>*</error-code>
        <location>errorPage.jsp</location>
    </error-page>

in my web.xml

However can't make the errorPage.jsp handle the errors.
It is still the error.jsp that is being used.

How is <error-page> used ?

0
Comment
Question by:simi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
fschutte earned 50 total points
ID: 9797692
Hi,
I don't think an asterisk will work (have you seen it work in another appserver?). The error-code expects an http error like 404 or 500. Alternatively you can specify an exception-type, e.g. org.foo.MyException.
If you want a default error page for every possible error, WebSphere provides an extension to the web.xml. This means you will have to specify it somewhere else, not in web.xml.
If you use wsad for development it will automatically create ibm-web-ext.xmi for this purpose which suites was 4 or 5. If you use was 3.5 just use the adminconsole or thelike to get a default error page.
Friso
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to monitor tomcat's heap usage? 2 116
Is vFabric an PaaS 1 146
Java: modify max heap size 7 149
getSandwich  java challenge 22 107
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question