Normally after an action is executed, the output can reference
information from the originating action with ognl through getters and
setters or direct method calls (ie $person.name:
getPerson().getName()).

If I intercept and short circuit an action (ie do not invoke it), what
is the proper way to make error messages available to the output
velocity template ?

I am not too familiar with the stack, but I tried putting messages
directly on the stack from the interceptor:

      actionInvocation.getStack().setValue("myInterceptorError",
error);

and retrieving them from the output:

  #set ($my_error = $stack.findValue("myInterceptorError"))
  <P>
  $my_error
  <P>

but that didn't seem to work...

thanks again.

Alex.


-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to