Re: Sending email on uncought exception problems

2013-11-26 Thread Miguel Almeida
The first thought I had was also that this might be better suited on an interceptor. You'll also have more control over the desired behaviour since interceptors are more easily testable than JSPs. Miguel On Tue, 2013-11-26 at 09:43 -0500, Dave Newton wrote: > Why not use an interceptor? > > Dave

Re: Sending email on uncought exception problems

2013-11-26 Thread Lukasz Lenart
2013/11/26 Lukasz Lichota : > I tried it but it did not work (unless I did something wrong). If any > action is on ValueStack, why should I add it to base class and not to any > random action I pick up? ValueStack is per created per request, so you don't know which action exactly it will be. Reg

Re: Sending email on uncought exception problems

2013-11-26 Thread Dave Newton
Why not use an interceptor? Dave On Tue, Nov 26, 2013 at 7:44 AM, Lukasz Lichota wrote: > hello, > > I'd like to run some java code on any uncought exception but so far I > cannot find a solution. > Under this link I found the exactly same question but I do not know how to > apply solution. >

Re: Sending email on uncought exception problems

2013-11-26 Thread Lukasz Lichota
On 26 November 2013 15:29, Lukasz Lenart wrote: > > Any action is always available on ValueStack, so you must add > notifyAdmin(exception) to the base action class. > > I tried it but it did not work (unless I did something wrong). If any action is on ValueStack, why should I add it to base class

Re: Sending email on uncought exception problems

2013-11-26 Thread Lukasz Lenart
2013/11/26 Lukasz Lichota : > hello, > > I'd like to run some java code on any uncought exception but so far I > cannot find a solution. > Under this link I found the exactly same question but I do not know how to > apply solution. > http://markmail.org/search/?q=global+exception+redirect+list%3Aor

Sending email on uncought exception problems

2013-11-26 Thread Lukasz Lichota
hello, I'd like to run some java code on any uncought exception but so far I cannot find a solution. Under this link I found the exactly same question but I do not know how to apply solution. http://markmail.org/search/?q=global+exception+redirect+list%3Aorg.apache.struts.users%2F#query:global%20e