You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dariusz Wojtas <dw...@gmail.com> on 2007/01/26 20:15:02 UTC
[S2] What is the preferred way of exception handling (error 500 and similar)?
Hi,
What is the suggested way of exception handling in Struts2?
I am talking about cases when there is a
* JSP page compilation error
* exception inside an action is
* someone types url /i.action instead of /index.action
...
I tried to turn 'struts.devMode' to true and false.
I tried to declare error page in web.xml
but I still see error 500 mesage in tomcat (5.5.x) result.
Can I declare some global error page in Struts2?
Or do I have to use some interceptor?
Or what?
If this matters I am using sitemesh with it.
I am using one of S 2.0.4 snapshots.
Regards
Dariusz Wojtas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] What is the preferred way of exception handling (error 500 and similar)?
Posted by Don Brown <do...@gmail.com>.
Perhaps this will help:
http://struts.apache.org/2.x/docs/exception-configuration.html
But for general 500 errors, normal servlet methods should work...
Don
On 1/26/07, Dariusz Wojtas <dw...@gmail.com> wrote:
> Hi,
>
> What is the suggested way of exception handling in Struts2?
> I am talking about cases when there is a
> * JSP page compilation error
> * exception inside an action is
> * someone types url /i.action instead of /index.action
> ...
>
> I tried to turn 'struts.devMode' to true and false.
> I tried to declare error page in web.xml
> but I still see error 500 mesage in tomcat (5.5.x) result.
>
> Can I declare some global error page in Struts2?
> Or do I have to use some interceptor?
> Or what?
>
> If this matters I am using sitemesh with it.
> I am using one of S 2.0.4 snapshots.
>
> Regards
> Dariusz Wojtas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org