<action name="superadd" class="com.iask.action.SuperAddAction">
     <result name="success">/user/manageask.jsp</result>
     <result name="failer">/ask.jsp</result>
     <result name="input" type="chain">
     <param name="actionName">findask</param>
     <param name="id">${askid}</param>
     </result>
     <result name="invalid.token">/error404.html</result>
     <interceptor-ref name="defaultStack"></interceptor-ref>
     <interceptor-ref name="token"></interceptor-ref>
</action>
为什么会报那个错误?

解决方案 »

  1.   

    No result defined for action
    这个异常信息你少些了一段!没说什么的result 
      

  2.   

    找不到action或者是result不对,异常贴全了
      

  3.   


    No result defined for action com.iask.action.DisplayAskAction and result input
      

  4.   

    我想是你的拦截器的问题.把拦截器去掉看看如果不行,result不多,试一下逐个result删去.这样就可以排了.
      

  5.   

    <result name="input" type="chain">
        <param name="actionName">findask </param>
        <param name="id">${askid} </param>
        </result> 
    这个错误了吧,你有findask么?
      

  6.   


    当然有这个action啦,没有的话会报找不到的错误的
      

  7.   


    我那个就是从网络上学来的,JSP加<s:token>
      

  8.   

    findask 
    你试试这个走不走action
    你就贴这么点代码,看不出来什么
      

  9.   


    之前我是用<result name="success" type="redirect">/findask.action?参数 </result>
    现在不想用redirect用chain
      

  10.   

    <result name="input">/自己定义一个错误的跳转页面。</result>struts2运行机制出错后会默认跳转到一个result 为 input的页面。在action的所有result后加入Input的定义即可。
      

  11.   

    你自己定义了个input 啊?Input是系统默认的。。或产生冲突吧?
      

  12.   

    是这个DisplayAskAction类的“input”result没找到
    原因有很多种,例如表单域的类型转过没通过,表单域的数据校验没通过等等! 好好查查吧!