Re: Validate method not working in Action after using Interceptor

2011-06-08 Thread Nikul Suthar
Thanks guys for helping me out. All I was missing was to add the defaultInterceptor in the interceptor stack. It works now as expected. Thanks, Nikul 2011/6/7 Jeff Black > Hey Nikul. > > Double-check your interceptor stack. It is only composed of your session > interceptor. > > Jb > > Nikul S

Re: Validate method not working in Action after using Interceptor

2011-06-08 Thread Jeff Black
Hey Nikul. Double-check your interceptor stack. It is only composed of your session interceptor. Jb Nikul Suthar wrote: >Hi There, > >I'm pretty new to using Struts 2 for developing a web application. So I >would be very thankful if someone can clear out this roadblock for me. > >I'm trying

RE: Validate method not working in Action after using Interceptor

2011-06-07 Thread Pankaj Shrivastava
8, 2011 10:03 AM To: user@struts.apache.org Subject: Validate method not working in Action after using Interceptor Hi There, I'm pretty new to using Struts 2 for developing a web application. So I would be very thankful if someone can clear out this roadblock for me. I'm trying

Re: Validate method not working in Action after using Interceptor

2011-06-07 Thread Chris Pratt
In your interceptor, you're replacing the logic from the DefaultWorkflowInterceptor with your own. What you really want to do is perform your work, then allow it to do it's job. So, instead of return invocation.invoke();, try return super.intercept(invocation); and see if that does more what you

Validate method not working in Action after using Interceptor

2011-06-07 Thread Nikul Suthar
Hi There, I'm pretty new to using Struts 2 for developing a web application. So I would be very thankful if someone can clear out this roadblock for me. I'm trying to write some custom validation code in method *public void validate()* in the Action class. I also created an interceptor extending