You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manuel Correa <mc...@itos.uga.edu> on 2007/08/28 21:40:09 UTC

Interceptor bug *

Hey, 

 

I defined my TokenInterceptor but show this error: 

 

*  No result defined for action example.ExampleAction and result
invalid.token

 

When I delete the line  <interceptor-ref name="token"></interceptor-ref>
everything works fine

 

<!DOCTYPE struts PUBLIC

    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

    "http://struts.apache.org/dtds/struts-2.0.dtd">

 

<struts><!-- Configuration for the default package. -->

      <constant name="struts.objectFactory" value="spring" />

    <constant name="struts.devMode" value="true" />

 

      <package name="itos-blan-project" extends="struts-default" >

 

 

     <interceptors>  

           <interceptor name="token"
class="org.apache.struts2.interceptor.TokenInterceptor"/>

            </interceptors>

 

 

             

             <action name="Example"
class="edu.uga.itos.project.controller.ExampleAction">

             <interceptor-ref name="token"></interceptor-ref>

             <result name="success">/success.jsp</result>

             </action>

             

      </package>

      

</struts>

 

Manuel Correa.

Application Analyst Specialist.

ITOS, Carl Vinson Institute of Government.

The University of Georgia.

Tel. (706) - 542-2164