Solved

Error page tag in web.xml

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

773 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