提示错误:
No result defined for action com.zjm.books.user.web.actions.UserAction and result input 
xml:
     <action name="addUser" class="userAction" method="addPage">
     <interceptor-ref name="defaultStack"></interceptor-ref>
     <interceptor-ref name="validation"></interceptor-ref>
     <result name="input">/user/addUser.jsp</result>
     <result name="suc" type="dispatcher">/user/addUser.jsp</result>
     <result name="fal" type="dispatcher">/error.jsp</result>
     </action>

解决方案 »

  1.   

    spring管理你的action ? 把你的配置多贴点。 
      

  2.   

    spring管理
    <bean id="userAction" class="com.zjm.books.user.web.actions.UserAction" scope="prototype">
    <property name="userService">
    <ref bean="userService" />
    </property>
    </bean>没加验证框架时,都好使,加上验证框架就不行了
      

  3.   

    No result defined for action com.zjm.books.user.web.actions.UserAction and result input 
    你return的string
    下边有吗?
    <result name="input">/user/addUser.jsp </result>
        <result name="suc" type="dispatcher">/user/addUser.jsp </result>
        <result name="fal" type="dispatcher">/error.jsp </result> 你可以试试 return "suc";