On Thu, Jul 30, 2009 at 2:41 PM, Dave Newton<newton.d...@yahoo.com> wrote:
> Bhaarat Sharma wrote:
>>
>> What is the way to provide a common error page in a struts2 application?
>> and
>> automatically redirect to the error page when errors occur?
>
> Map exceptions to a global result.
>
> Dave
>


Make sure you set error-page in your web.xml as well. Exceptions
mapped to global results are good for errors that occur in app code,
but you should also consider things like 404s.

-Wes
-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to