struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Correa" <mcor...@itos.uga.edu>
Subject Interceptor bug *
Date Tue, 28 Aug 2007 19:40:09 GMT
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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message