If your errors are set into your action, they will still be available. Just because the action is not executed does not mean it's not available on the stack for Ognl expressions...
> -----Original Message----- > From: Alexandru Roman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 6:56 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] interceptor/velocity > > > 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 > ------------------------------------------------------- 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_code4 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork