Dear All,
 
i have programmed a simple (custom) interceptor.
 
....placed logic in post action invocation.
 
public String doIntercept(ActionInvocation invocation) throws Exception {

    Object action = invocation.getAction();

    String ret = invocation.invoke();

    if (action instanceof MyAware) {

            ((MyAware) action).callme();

    }

    return ret;

}

....in Action's "callme()" method, I am setting action's var (this var has
getter and setter).

In my velocity vm file, I am accessing this action's var.

$myvar

By default, the action's property would be placed in valuestack and, could
be accessed from velocity page.

Hmmm, this is not showing up in the velocity page.

If, this is in pre action invocation, $myvar 's value gets displayed . Only,
when this goes into post action invocation, it is not showing up...

Any clues?

Regards,
Prasad

 

Reply via email to