看起来没什么问题,用的容器是什么tomcat?  版本是多少?

解决方案 »

  1.   

    struts.xml中的<result   name= "SUCCESS " >/welcome.jsp </result > 
                 <result   name= "ERROR " >/login.jsp </result > name属性应该为小写,因为action中return的常量字符串为小写,struts2不会忽略大小写.
      

  2.   

    struts.xml中的 <result       name=   "SUCCESS   "   >/welcome.jsp   </result   >   
                              <result       name=   "ERROR   "   >/login.jsp   </result   >   name属性应该为小写,因为action中return的常量字符串为小写,struts2不会忽略大小写. 
    和mapping.fandraword("success");
    这里没有参数么public   String   execute(?)   
      

  3.   

    struts.xml中 class= "org.fcb.action.HelloAction " > 
    为什么类名后面为多个空格?它能找到吗? 
      

  4.   

    <result   name= "SUCCESS " >/welcome.jsp </result > 
    <result   name= "ERROR " >/login.jsp </result > 
    -->
    <result   name= "success" >/welcome.jsp </result > 
    <result   name= "error" >/login.jsp </result > 
      

  5.   

    to:SKY138421 不需要参数,这是struts2的执行类,重写父类的函数,返回值那里确实应该全部小写的
    @Override
    public String execute(){
       return SUCCESS;
    }