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
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
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.
>
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
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
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
6 matches
Mail list logo