其中出现错误的代码是:return  super.execute(mapping,  form,  request,  response);

解决方案 »

  1.   

    为什么不return actionMapping.findForward();super中有execute的实现吗?
      

  2.   

    “super中有execute的实现” ,为什么还有错啊????你的Action 是怎么写的 贴出来看看。
      

  3.   

    return  super.execute(mapping,  form,  request,  response);这句话好像不能直接return ,你要写一个ActionForwrad a = super.execute(mapping,form,request,response)然后再reutnr a;
      

  4.   

    super就是Action,我查过STRUTS DOC,好象Action类只有一个perform没有execute。我改为return super.perform(mapping,form,request,response);就没有报错了。是不是版本有问题?
      

  5.   

    在1.0中只有perform()方法的,如果你使用1.1的话都可以的,不过最好使用execute()方法
      

  6.   

    以我个人的看法,楼主最后不要用Action里处理业务逻辑,将这些逻辑封装在别的Business 类中
    调用就可以了
      

  7.   

    顶楼上的,Action是作为Controler使用,而这些针对数据库的操作属于Model,应该把他们放到Business类中