You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2008/03/28 00:50:49 UTC

ExceptionMappingInterceptor

How would you go about retrieving this ExceptionHolder from the value stack
from within an action?  I can't figure out what "key" to specify when trying
to find it.

    /**
     * Default implementation to handle ExceptionHolder publishing. Pushes
given ExceptionHolder on the stack.
     * Subclasses may override this to customize publishing.
     *
     * @param invocation The invocation to publish Exception for.
     * @param exceptionHolder The exceptionHolder wrapping the Exception to
publish.
     */
    protected void publishException(ActionInvocation invocation,
ExceptionHolder exceptionHolder) {
        invocation.getStack().push(exceptionHolder);
    }

-- 
Scott
stanlick@gmail.com

Re: ExceptionMappingInterceptor

Posted by st...@gmail.com.
Never mind d!  I was using action redirectAction when I needed chain.

Scott

On Thu, Mar 27, 2008 at 7:39 PM, <st...@gmail.com> wrote:

> Hmmmm
>
> Any idea why this would return null?
>
> ActionContext.getContext().getValueStack().findValue("exception")
>
>
>
>
> On Thu, Mar 27, 2008 at 7:11 PM, Dave Newton <ne...@yahoo.com>
> wrote:
>
> > --- stanlick@gmail.com wrote:
> > > How would you go about retrieving this ExceptionHolder from the value
> > stack
> > > from within an action?  I can't figure out what "key" to specify when
> > > trying to find it.
> >
> > It's pushed; AFAIK there is no key, just like there's no key for a
> > pushed
> > action (unless somebody added the #action thing).
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Scott
> stanlick@gmail.com




-- 
Scott
stanlick@gmail.com

Re: ExceptionMappingInterceptor

Posted by st...@gmail.com.
Hmmmm

Any idea why this would return null?

ActionContext.getContext().getValueStack().findValue("exception")



On Thu, Mar 27, 2008 at 7:11 PM, Dave Newton <ne...@yahoo.com> wrote:

> --- stanlick@gmail.com wrote:
> > How would you go about retrieving this ExceptionHolder from the value
> stack
> > from within an action?  I can't figure out what "key" to specify when
> > trying to find it.
>
> It's pushed; AFAIK there is no key, just like there's no key for a pushed
> action (unless somebody added the #action thing).
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Re: ExceptionMappingInterceptor

Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> How would you go about retrieving this ExceptionHolder from the value stack
> from within an action?  I can't figure out what "key" to specify when
> trying to find it.

It's pushed; AFAIK there is no key, just like there's no key for a pushed
action (unless somebody added the #action thing).

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org