public Object execute(HttpServletRequest request, HttpServletResponse response) throws Exception {

    CommandResult result = new CommandResult();
    String resultPage = null;
    int MF_ID = Integer.parseInt(request.getParameter("mf_id"));
    String MF_Name = request.getParameter("mf_name");
    String MF_Tel = request.getParameter("mf_tel");
    String MF_Add = request.getParameter("mf_add");
    String MF_Post = request.getParameter("mf_post");

    ManufacturersinfoTo to = new ManufacturersinfoTo();
    to.setMF_ID(MF_ID);
    to.setMF_Name(MF_Name);
    to.setMF_Tel(MF_Tel);
    to.setMF_Add(MF_Add);
    to.setMF_Post(MF_Post);

    boolean flag = ManufacturersinfoManager.getInstance().update(to);

    if (flag == true) {
      resultPage = ApplicationResources.MANUFACTURERSINFO_RETURN;
    } else {
      throw new Exception("厂商信息修改失败!");
    }

    result.setResultPage(resultPage);

    logger.debug(this.getName() + "'s result will be sent to " + resultPage);

    return result;
  }
  public Object execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
    CommandResult result = new CommandResult();
    String resultPage = null;
    int pageNum = Integer.parseInt(request.getParameter("pageNum"));
    Page page = ShirtManager.getInstance().findShirtCustomBypage(pageNum, 6);
    request.setAttribute("page", page);

    resultPage = ApplicationResources.DIYSHIRT_DIYCUSTOMLIST;

    result.setResultPage(resultPage);

    logger.debug(this.getName() + "'s result will be sent to " + resultPage);

    return result;
  }
  @Override
  public Object execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
    // TODO 自动生成方法存根
    CommandResult result = new CommandResult();
    String resultPage = null;

    String PicName = request.getParameter("PicName");
    int PicCate = Integer.parseInt(request.getParameter("PicCate"));
    // String operation = request.getParameter("operation");
    int pageNum = Integer.parseInt(request.getParameter("pageNum"));

    Page mypage = PictureManager.getInstance().findPicture(pageNum, 6, PicName, PicCate);
    request.setAttribute("mypage", mypage);
    request.setAttribute("PicName", PicName);
    request.setAttribute("PicCate", PicCate);

    resultPage = ApplicationResources.PICTURE_PICTURESEARCHRESULT;
    result.setResultPage(resultPage);

    logger.debug(this.getName() + "'s result will be sent to " + resultPage);
    return result;
  }