Solved

Error page tag in web.xml

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

615 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