How about you describe the code the code and behavior and post it, rather
than making us download a zip, extract it, look at it and/or run it, etc?

Btw, the comment in your PostViewInterceptor is a bit misleading; the S.o.p
will execute before the view is rendered, because it occurs before the
invocation.invoke().

In any case, when you define an <interceptor-ref> for a specific action,
you must define *all* of the interceptors for that action. Your stack on
the "login" action contains *only* the "logger1" interceptor, bypassing all
of the built-in Struts 2 functionality, including the "params" interceptor.

This means the request parameters will not be set on your action.

Dave

On Sun, Nov 20, 2011 at 2:29 PM, Srineel Mazumdar <smaz19...@gmail.com>wrote:

> Please enable and disable the interceptor logger1. When interceptor is
> disable, I get userid/password in action, but not ,when enabled. If
> possible please run the code and check
>
> On Mon, Nov 21, 2011 at 12:56 AM, Dave Newton <davelnew...@gmail.com>
> wrote:
>
> > "The" interceptor? Which interceptor? What makes you think an interceptor
> > is clearing the value stack?
> >
> > Dave
> >
> > On Sun, Nov 20, 2011 at 2:10 PM, Srineel Mazumdar <smaz19...@gmail.com
> > >wrote:
> >
> > > Hi,
> > >
> > > I am creating a small struts2 application and the problem that I face
> is
> > > that the inteceptor is clearing the value stack and I cannot get the
> > values
> > > in JSP in my action.
> > > Please help.
> > >
> > > Regards,
> > > Srineel
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> >
>

Reply via email to