Solved

Error page tag in web.xml

Posted on 2003-10-22
3
626 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

-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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now