Hi Pawel,

thanks for the link

we already check the interceptor for the namespace, and it's showing the
interceptor yang we configure in the config-browser-plugin

TimerInterceptor
com.opensymphony.xwork2.interceptor.TimerInterceptor

but, when we check from the Apache console, the interceptor is not in the
console log for 2.1.6, when we run the same code in the 2.0.6
at the end of the apache log, it show the interceptor is envoked.

Is there any additional configuration need to be setup to enable the
interceptor in 2.1.6 ? beside the one we already setup as in previous email.

Name
Type

ExceptionMappingInterceptor
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor

AliasInterceptor
com.opensymphony.xwork2.interceptor.AliasInterceptor

ServletConfigInterceptor
org.apache.struts2.interceptor.ServletConfigInterceptor

I18nInterceptor
com.opensymphony.xwork2.interceptor.I18nInterceptor

PrepareInterceptor
com.opensymphony.xwork2.interceptor.PrepareInterceptor

ChainingInterceptor
com.opensymphony.xwork2.interceptor.ChainingInterceptor

DebuggingInterceptor
org.apache.struts2.interceptor.debugging.DebuggingInterceptor

ProfilingActivationInterceptor
org.apache.struts2.interceptor.ProfilingActivationInterceptor

ScopedModelDrivenInterceptor
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor

ModelDrivenInterceptor
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor

FileUploadInterceptor
org.apache.struts2.interceptor.FileUploadInterceptor

CheckboxInterceptor
org.apache.struts2.interceptor.CheckboxInterceptor

StaticParametersInterceptor
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor

ActionMappingParametersInteceptor
org.apache.struts2.interceptor.ActionMappingParametersInteceptor

ParametersInterceptor
com.opensymphony.xwork2.interceptor.ParametersInterceptor

StrutsConversionErrorInterceptor
org.apache.struts2.interceptor.StrutsConversionErrorInterceptor

AnnotationValidationInterceptor
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor

DefaultWorkflowInterceptor
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor

TimerInterceptor
com.opensymphony.xwork2.interceptor.TimerInterceptor

Thanks
Yanto


2009/6/16 Paweł Wielgus <poulw...@gmail.com>

> Hi Yanto,
> use this [1] plugin to verify if all namespaces and stacks are as You
> think they should be.
>
> [1] http://struts.apache.org/2.x/docs/config-browser-plugin.html
>
> Best greetings,
> Paweł Wielgus.
>
>
> 2009/6/16 Yanto <yantob...@gmail.com>:
> > Hi,
> >
> >
> > I am trying to use the following simple interceptor test the interceptor
> > concepts but is not happened while calling the action class.
> >
> >
> >
> > Sample interceptor class.
> >
> >
> >
> > *import* *com.opensymphony.xwork2.ActionContext*;
> >
> > *import* com.opensymphony.xwork2.ActionInvocation;
> >
> > *import* com.opensymphony.xwork2.interceptor.AbstractInterceptor;
> >
> >
> >
> > *public* *class* *InterceptorSample* *extends* AbstractInterceptor {
> >
> >
> >
> >      @Override
> >
> >      *public* String intercept(ActionInvocation invocation)
> *throws*Exception {
> >
> >            // *TODO* Auto-generated method stub
> >
> >            System.*out*.println("Testing the interceptor  : calling the
> > interceptor sample");
> >
> >            *return* "success";
> >
> >      }
> >
> >
> >
> > }
> >
> >
> >
> > I configured in the struts.xml for my action class using  below config.
> >
> >
> >
> > <package name=*"test"* namespace=*"/test"* extends=*"struts-default"*>
> >
> >
> >
> > *  <interceptors>*
> >
> > *            <interceptor name="sample"
> class="sample.**InterceptorSample* *
> > "/>*
> >
> > *  </interceptors>*
> >
> >
> >
> >
> >
> >        <action name=*"test"* class=*"test.QuizAction"*>
> >
> >
> >
> >            <interceptor-ref name=*"sample"*/>
> >
> >
> >
> >                  <result name=*"success"*>/input.*jsp*</result>
> >
> >                  <result name=*"error"*>/input.*jsp*</result>
> >
> >                  <result name=*"input"*>/input.*jsp*</result>
> >
> >                  </action>
> >
> >    </package>
> >
> >
> >
> >
> >
> > I noted nothing printed and anyone can help to resolve the issue.
> >
> >
> > Thanks
> >
> > Yanto
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to