有哪位高手帮帮忙。。实在是不知道错哪里了,怎么总是出现不包含parameter op

解决方案 »

  1.   

    和我一样的问题。我也想知道怎么回事!
    jsp页面提交: <html:form  method="post" action="/fav.do" focus="item.label">
    struts-config.xml里的配置:<action name="favForm"
          parameter="op"
          path="/fav"
          scope="request"
          type="y2ssh.dlc.chap1.web.action.FavAction"
          validate="false">
          <forward name="favAdd" path="/WEB-INF/view/FavAdd.jsp" />
        </action>
    Action里:public class FavAction extends DispatchAction {
    private FavBiz favBiz = new FavBizImpl();


    public ActionForward doAdd(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response) {
                                     //内容省略
    }
    }
      

  2.   

    运行时报错:does not contain handler parameter named 'op'.  This may be caused by whitespace in the label text.
      

  3.   

    很简单。你在form 加上method="post"
      

  4.   

    没用过struts标签,帮你顶up一下吧