Thanks for your reply Niall. But I have a very simple error page and
here it is :

<%@ page isErrorPage="true" %>
<table>
        <tr> 
                <td class="title">Error</td>
        </tr>
        <tr> 
                <td>
                        The page you requested was not found. Kindly try
again and submit feedback on the homepage if the problem persists.
                </td>
        </tr>
</table> 

This works if I don't use struts as a framework. But the moment I
integrate it with struts, it stops working. :(

I even tried with simple html page but too failed.

-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 3:58 PM
To: Struts Users Mailing List
Subject: Re: Why global error handling doesn't work with struts?

Maybe theres an error in your error page? Try replacing it with a simple
html page and see if that works. Also test your error page outside of
the
error mechanism.

Niall

----- Original Message ----- 
From: "Partha Pratim Dutta" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 4:39 AM


Hi All

I am running Tomcat 4.x and have tried to set global error handling
using the following entry in the web.xml file. But there is no
redirection and I always end up with 404 page not found error in the
browser. I am using struts 1.2 as the MVC framework for the application.

One more strange thing that I have noticed is that although the error
page doesn't show up but it prints the SOP statements on the console.
That means that it is getting redirected to the error page but why is it
not showing up then?

Does anyone have a solution to this problem?

<error-page>
<error-code>404</error-code>
<location>/weberror.jsp</location>
</error-page>


Thanks & Regards

Partha





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to