I'm using struts 2.3.1 with token interceptor.How can i use token interceptor in annotation(convension) based Action Class.
here is My struts.xml
<action name="tokenAction" class="roseindia.action.TokenAction">
<interceptor-ref name="token" />
<interceptor-ref name="basicStack"/>
<result name="success" >/success.jsp</result>
<result name="invalid.token">/index.jsp</result>
can any one please tell annotation based for the same.