Use the optional <error-page> element defined in web.xml, this allows
you to map an error code _or_ exception type to the path of a resource
in the Web application (e.g. a custom page).

error-code: The http error code e.g. 404
exception-type: fqcn of a Java exception type
location: the location of the resource to be displayed in response to
the error e.g. /pages/404.html

The web.xml entry might look like this:

    <error-page>
        <error-code>403</error-code>
        <location>/pages/403.jsp</location>
    </error-page>


-----Original Message-----
From: Tony Smith [mailto:[EMAIL PROTECTED] 
Sent: 16 June 2005 06:08
To: user@struts.apache.org
Subject: http 404 page


If there is a problem, e.g. an action/page can not be
found, the ugly "Http 404 page not found" page will be
display. Is there a way to handle such event as Struts
Exception handling?

Thanks,

 



                
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it
out! 
http://discover.yahoo.com/weekend.html 


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

If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

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

Reply via email to