Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error page tag in web.xml

Posted on 2003-10-22
3
Medium Priority
?
655 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 200 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

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

688 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